REM Used so you can simply double click the .bat file to make a PowerShell script run (.ps1 scripts don't run as admin by default when double clicking) Powershell.exe -executionpolicy remotesigned -file "C:\Users\%UserName%\Desktop\script.ps1"