While Loop In Powershell Script Block