We have a Windows Service application that can accept command line parameters like:
MyService -option
So far, when we want to start the
Powershell can do this but you have to use .Net to achieve it.
new-Object System.ServiceProcess.ServiceController("$ServiceName",$ComputerName)).Start("$Parameter")