Powershell Enc
$pt='echo "Hello $env:username"'
$bytes=[System.Text.Encoding]::Unicode.GetBytes($pt)
$enc=[Convert]::ToBase64String($bytes)
$enc
ZQBjAGgAbwAgACIASABlAGwAbABvACAAJABlAG4AdgA6AHUAcwBlAHIAbgBhAG0AZQAiAA==
Run the encoded code
powershell.exe -enc "ZQBjAGgAbwAgACIASABlAGwAbABvACAAJABlAG4AdgA6AHUAcwBlAHIAbgBhAG0AZQAiAA=="