You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
406 B

REM Generic batch script to execute powershell scripts along with positional parameters
REM Pass path to PS1 script as well as any parameters you want to pass
REM Spaces are not supported in script path
REM Also, in testing, powershell script must use positional parameters. Results may vary
REM Ex. "./Scripts/PSScript.bat c:\scripts\test.ps1 value"
powershell.exe -ExecutionPolicy RemoteSigned -File %*