DOS batch script sleep timer

I had the need to set a sleep timer at the end of a batch script to close the script 10 seconds after it finished. There used to be a sleep command that could be used in batch scripting but sadly that isn't the case anymore.

@echo off
For /l %%z in (10,-1,1) do (TITLE Drive Mapping -- closing in %%zs & ping -n 2 -w 1 127.0.0.1>NUL)
Title Drive Mapping