Passing parameters

Apr 29, 2013 at 5:44 PM
Is there anyway to pass multiple parameters? For example, I've compiled a custom PowerShell script into an exe called script.exe. The two parameters within the script are ip and fullscreen. If I run the following, the IP is passed, but not the fullscreen switch.

.\script.exe 10.1.1.1 -fullscreen

If I do .\script.exe -ip 10.1.1.1, "-ip" is passed, not "10.1.1.1".

Anyway to change this behavior? Thanks!