Created
July 9, 2015 17:15
-
-
Save jetstreamin/f467c6cd9adb58036d6a to your computer and use it in GitHub Desktop.
Passing Arguments from Batch to PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell -command "G:\Karan\PowerShell_Scripts\START_DEV.ps1 Dev" | |
and inside your script head: | |
$w=$args[0] | |
This if you want to use the built-in variable $args. Otherwise: | |
powershell -command "G:\Karan\PowerShell_Scripts\START_DEV.ps1 -w \"Dev\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment