PowerShell HOWTO: Pass Command Line Arguments From One Script to Another

PowerShellLogo

I encountered another PowerShell quirk when porting my build environment scripts. This one had to do with passing command-line arguments from one script to another. Essentially, I would arguments when invoking ``script1.ps1``, which do some processing and would pass those same arguments to ``script2.ps1``. But ``script2.ps1`` wasn't getting the arguments as one might expect. It took some jumping through hoops to figure it out.

Read "HOWTO: PowerShell - Pass Command Line Arguments Between Scripts".


Previous: [SOLVED] Cocos Studio: 'Cocos Framework is not installed' Error

links