Encode the powershell cmd