While Function Powershell Update