Keep System Awake (VBS)
Set wsc = CreateObject("WScript.Shell")
Do
    ' Sleep 5 minutes, then send a harmless keypress
    WScript.Sleep(5 * 60 * 1000)
    wsc.SendKeys("{F13}")
Loop

Save as keepawake.vbs and run with wscript keepawake.vbs.

Remove Header from Transcript
Start-Transcript -Path "C:\Logs\output.txt" -IncludeInvocationHeader $false -Force
# Your commands here
Stop-Transcript
Install Chocolatey + PowerShell Core
# Step 1 — Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol =
    [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString(
    'https://community.chocolatey.org/install.ps1'))

# Step 2 — Install PowerShell Core
choco install powershell-core -y --force