While Loop In Powershell Script If Statement