-
-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathSuperGodMode-EasyLauncher.bat
18 lines (15 loc) · 1.01 KB
/
SuperGodMode-EasyLauncher.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off
:: Lines starting with two colons :: are comments
:: -------------------- If the actual script isn't found, display an error --------------------
if not exist "Super_God_Mode.ps1" (
echo --- Error: The script "Super_God_Mode.ps1" was not found in the current directory ---
echo Please ensure the PowerShell script is in the same folder as this batch file. This batch file just launches the script.
echo.
echo Press any key to exit...
pause > nul
)
:: --------------------------------------------------------------------------------------------
:: Sets the execution policy for the current process to allow the script to run, then runs it.
powershell -NoProfile -ExecutionPolicy Bypass -File "Super_God_Mode.ps1"
:: Alternatively, you could run this command yourself in a powershell window before running the script: Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
:: Which also would just allow scripts for that current PowerShell session, then you can run the script with: .\Super_God_Mode.ps1