imProcessCreate | where ((ParentProcessName endswith "\\sqlservr.exe" or ActingProcessName endswith "\\sqlservr.exe") and (TargetProcessName endswith "\\bash.exe" or TargetProcessName endswith "\\bitsadmin.exe" or TargetProcessName endswith "\\cmd.exe" or TargetProcessName endswith "\\netstat.exe" or TargetProcessName endswith "\\nltest.exe" or TargetProcessName endswith "\\ping.exe" or TargetProcessName endswith "\\powershell.exe" or TargetProcessName endswith "\\pwsh.exe" or TargetProcessName endswith "\\regsvr32.exe" or TargetProcessName endswith "\\rundll32.exe" or TargetProcessName endswith "\\sh.exe" or TargetProcessName endswith "\\systeminfo.exe" or TargetProcessName endswith "\\tasklist.exe" or TargetProcessName endswith "\\wsl.exe")) and (not(((ParentProcessName startswith "C:\\Program Files\\Microsoft SQL Server\\" or ActingProcessName startswith "C:\\Program Files\\Microsoft SQL Server\\") and (ParentProcessName endswith "DATEV_DBENGINE\\MSSQL\\Binn\\sqlservr.exe" or ActingProcessName endswith "DATEV_DBENGINE\\MSSQL\\Binn\\sqlservr.exe") and TargetProcessName =~ "C:\\Windows\\System32\\cmd.exe" and TargetProcessCommandLine startswith "\"C:\\Windows\\system32\\cmd.exe\" ")))