Uncovering Commands Hidden Inside PowerShell Scripts
This KQL query reveals the PowerShell commands executed within PowerShell script by extracting individual commands through the PowerShellCommand events in Defender DeviceEvents.
Microsoft Sentinel (KQL)

