PShellEncoder is a utility for generate any powershell payloads. May use with GUI.
Used some code from:
https://github.com/danielbohannon/Invoke-Obfuscation.git https://github.com/PowerShellMafia/PowerSploit.git
powershell ./Build.ps1
or with docker
sudo docker run -it -v "$PWD":/root mcr.microsoft.com/powershell pwsh -c 'cd /root/ ; ./Build.ps1'
build result in "./build/" directory
powershell ./PShellEncoder.ps1 or powershell ./PSEncoderUI.ps1
Detected by Windows Defender