Cmd Wait For Process To Finish