If the SLEEP command doesn’t work in your batch file, this is because you need to install the Windows Resource kit. SLEEP doesn’t seem to be included in the commands for Windows 10 out of the box.
The best way to fix this is to use the TIMEOUT command instead. To add a 1 second delay in your batch file, use this command:
timeout /t 1
The TIMEOUT command is a bit more configurable than the SLEEP command and is therefore better to use in batch files.
❗ Note: TIMEOUT will not work on older operating systems (Pre Vista, I think).