Most commands have a wait to complete function "WAIT=YES". What is your problem you are trying to solve?