$cs.Shell\_ExecuteWithTimeout
Syntax
Section titled “Syntax”$cs.Shell_ExecuteWithTimeout(string command, string arguments = "", bool mustexist = false, int timeout = 30)
Parameters
Section titled “Parameters”command
command to execute
arguments
argumtents for the command
mustexist
check if command file exists before excuting (default False)
timeout
seconds to wait for before timing out
Example
Section titled “Example”$cs.Shell_ExecuteWithTimeout("msiexec","/i `"$Packageroot\kit\GoogleChromeStandaloneEnterprise64.Msi`", $true, 120)returns result in integer