Batch script hidden relaunch via PowerShell WScript.Shell and csc.exe Add-Type
Detects a sequence where a command shell (cmd.exe) launches PowerShell with WScript.Shell and a hidden window flag, followed within 10 minutes by PowerShell spawning the C# compiler (csc.exe) for runtime code compilation.
Microsoft Sentinel (KQL)
