wait - Windows command-line utility to wait for the termination of processes or jobs
wait {pid... | -j jobname...}
The wait(1w) Windows utility waits for the completion of processes or jobs. If a list of process identifiers is given, wait waits until all of them have terminated. If a list of job names is given, wait waits until all the processes belonging to those jobs have terminated.
The wait utility supports the following option:
The wait utility supports the following argument:
The exit status returned by the wait utility will be the exit status of the process requested by the last pid operand.
The other possible exit-status values are:
If one or more pid operands are specified, which represent unknown process identifiers (PIDs), wait treats them as if they were known PIDs that exited with the exit status 127.
kill(1w)
ps(1w)
top(1w)
sleep(1w)