$cs.Sys\_WaitForProcess
Syntax
Section titled “Syntax”$cs.Sys_WaitForProcess(string processname, int MaxWaitSec, int IntervalSec)
Parameters
Section titled “Parameters”processname
Process name to wait for to finish
MaxWaitSec
Max seconds to wait
IntervalSec
Seconds to sleep before checking again
Example
Section titled “Example”if ($cs.Sys_ExistProcess("setup.exe")){ $cs.Sys_WaitForProcess("setup.exe",60,1)}returns nothing