Link to home
Start Free TrialLog in
Avatar of Brian
BrianFlag for United States of America

asked on

How to use command line switches in a PowerShell script

I want to create a PowerShell script that runs a command line program with a switch.  In a batch file, the command would look like this...
"C:\Program Files\MyProgram\MyCMDprogram.exe" -Enable 75843456

Open in new window

How can I accomplish the same thing in a PowerShell script?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brian

ASKER

Perfect!  Thanks so much for the help, oBdA!