Syntax
<dllobject>.Sys_WaitForProcess(string processname, int MaxWaitSec, int IntervalSec)
Parameters
processname
Process name to wait for to finish
MaxWaitSec
Max seconds to wait
IntervalSec
Seconds to sleep before checking again
Example
if ($cs.Sys_ExistProcess("setup.exe")){ $cs.Sys_WaitForProcess("setup.exe",60,1)}
returns nothing