while(nprocs.length == procs.length && cnt < 2) {
        cnt++;
        WScript.Sleep(500);
        nprocs = process_list();
    }