Hello
If you look at PowerShell’s help, you’ll see that you can use base64 as a parameter :
PowerShell /?
Like this :
$encodedCommand = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes("'Hello World !'")) PowerShell.exe -EncodedCommand $encodedCommand
Problem : The base64 is quite obfuscated :
Solution :
[System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($EncodedCommand))