Fixed powershell script