Add Wait In Powershell Script If Statement