Updated powershell script