$cs.Shell_Execute
Syntax
$cs.Shell_Execute(string command, string arguments = "", bool wait = true, int windowstyle = 0, bool mustexist = false, string workingdirectory = "")
Parameters
command
command to execute
arguments
argumtents for the command - if none enter empty string ''
wait
wait for command to complete (default True)
windowstyle
should command window be hidden or visible (default hidden). Choices (0=hidden, 1=normal, 2=minimized, 3=Maximized)
mustexist
check if command file exists before excuting (default False)
workingdirectory
working directory for command (default emtpy)
Â
Example
$cs.Shell_Execute("msiexec","/i `"$Packageroot\kit\GoogleChromeStandaloneEnterprise64.Msi`" /QN REBOOT=REALLYSUPPRESS ALLUSERS=1")
returns result in integer
Â