Obfuscated version of AmsiOpenSession patch bypass by TheD1rkMtr.
To use it simply do the following:
Attacker Shell:
$pid
Auxiliary Shell:
C:\path\to\AmsiBypass123.exe {pid_of_attacker_shell}
Or, alternatively in the same shell:
Start-Process -FilePath "C:\path\to\AmsiBypass123.exe" -ArgumentList "$pid"