trying to start terminal from script and use wait [deploy]