API test script update: wait for execution output