timeout.exe
can be used in a cmd.exe batch file or a PowerShell script to pause execution («sleep») for a specified amount of seconds. timeout /t 5 > nul
timeout /t 5 | out-null
timeout.exe
stops waiting when a key is pressed. Using /nobreak
causes timeout.exe
to disregard key strokes. ctrl-c
however always cancels the waiting immediately.