How to delay in a batch file

by using the CHOICE command.  Which is a hack, but it works.

To delay for 5 seconds:
choice /T 5 /D Y

An explanation follows:
/T is the number of seconds before the default choice is made.  In this case, 5 seconds.
/D the default choice.  In this case, Y

The default list of choices for the CHOICE command is YN.