Skip to content

Instantly share code, notes, and snippets.

@Microsofttechies
Created April 16, 2015 17:42
Show Gist options
  • Select an option

  • Save Microsofttechies/8eb1680d141ec85b2dd9 to your computer and use it in GitHub Desktop.

Select an option

Save Microsofttechies/8eb1680d141ec85b2dd9 to your computer and use it in GitHub Desktop.
Bat file calling PS1
@Set exePath="C:\My.exe"
Echo "Call PS1"
PowerShell.exe Set-ExecutionPolicy RemoteSigned; "C:\MyScript.PS1" -exePath %exePath%
Echo "End PS1"
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment