While Loop In Powershell Script Not Running