Skip to content

Instantly share code, notes, and snippets.

@jcefoli
Created May 8, 2017 19:31
Show Gist options
  • Save jcefoli/6ba224bd7d8af1c00a295ef21db52290 to your computer and use it in GitHub Desktop.
Save jcefoli/6ba224bd7d8af1c00a295ef21db52290 to your computer and use it in GitHub Desktop.
Call Powershell Script With Parameters from Batch File
powershell.exe -ExecutionPolicy Bypass -Command "& {C:\YourScript.ps1 -Parameter 'Value'}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment