wait-process
Wait for the processes to be stopped before accepting more input. tldr-pages
On Windows
Windows
Wait for the processes to be stopped before accepting more input. Note: This command can only be used through PowerShell.
Stop a process and wait
Stop-Process -Id process_id; Wait-Process -Id process_idIdentifyWait for processes for a specified time
Wait-Process -Name process_name -Timeout 30Identify