You may be trying to write a script that requires user input to complete, or sometimes the script requires a delay to let another process finish executing first.
Read More