Add Wait To Powershell Script Generator