Piling on guardrails is the sign of a system permanently compensating for its own unreliability. There’s a better approach.
description: Detects non-interactive PowerShell activity by looking at the "powershell" process with a non-user GUI process such as "explorer.exe" as a parent ...