Update to Powershell script