Program to wait for asynchronous script to finish execution using setScriptTimeout Command.