/
$cs.Shell_ExecuteWithTimeout

$cs.Shell_ExecuteWithTimeout

Syntax

$cs.Shell_ExecuteWithTimeout(string command, string arguments = "", bool mustexist = false, int timeout = 30)

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

$cs.Shell_ExecuteWithTimeout("msiexec","/i `"$Packageroot\kit\GoogleChromeStandaloneEnterprise64.Msi`", $true, 120)

returns result in integer