Ping has a designated length of time it will wait for a response. The length of time Ping will wait for a non-existent IP address to respond is how long you can make your command-line script wait.
You probably know as much about Ping as I do. I myself have only used ping a time or two, but never as a form of pausing. I have used pause mostly, sleep with counters, and I believe timeout once.