PowerShell 7 AMSI Bypass via DynamicMethod IL Emission (JIT Heap Patch)

Detects execution of PowerShell commands that attempt to bypass the Antimalware Scan Interface (AMSI) by dynamically creating methods using System.Reflection.Emit. It looks for specific keywords associated with reflection-based AMSI tampering, such as creating dynamic methods, accessing internal IL generators, and explicitly targeting AMSI-related memory structures like amsiContext or s_amsiInitFailed.