imProcessCreate | where (TargetProcessName endswith "\\netsh.exe" or TargetProcessFileOriginalName =~ "netsh.exe") and ((TargetProcessCommandLine contains "firewall " and TargetProcessCommandLine contains "add " and TargetProcessCommandLine contains "tcp " and TargetProcessCommandLine contains "3389") and (TargetProcessCommandLine contains "portopening" or TargetProcessCommandLine contains "allow"))