Add Wait To Powershell Script If Statement