imProcessCreate | where (ParentProcessName contains "\\PDQDeployRunner-" or ActingProcessName contains "\\PDQDeployRunner-") and ((TargetProcessName endswith "\\bash.exe" or TargetProcessName endswith "\\certutil.exe" or TargetProcessName endswith "\\cmd.exe" or TargetProcessName endswith "\\csc.exe" or TargetProcessName endswith "\\cscript.exe" or TargetProcessName endswith "\\dllhost.exe" or TargetProcessName endswith "\\mshta.exe" or TargetProcessName endswith "\\msiexec.exe" or TargetProcessName endswith "\\regsvr32.exe" or TargetProcessName endswith "\\rundll32.exe" or TargetProcessName endswith "\\scriptrunner.exe" or TargetProcessName endswith "\\wmic.exe" or TargetProcessName endswith "\\wscript.exe" or TargetProcessName endswith "\\wsl.exe") or (TargetProcessName contains ":\\ProgramData\\" or TargetProcessName contains ":\\Users\\Public\\" or TargetProcessName contains ":\\Windows\\TEMP\\" or TargetProcessName contains "\\AppData\\Local\\Temp") or (TargetProcessCommandLine contains " -decode " or TargetProcessCommandLine contains " -enc " or TargetProcessCommandLine contains " -encodedcommand " or TargetProcessCommandLine contains " -w hidden" or TargetProcessCommandLine contains "DownloadString" or TargetProcessCommandLine contains "FromBase64String" or TargetProcessCommandLine contains "http" or TargetProcessCommandLine contains "iex " or TargetProcessCommandLine contains "Invoke-"))