Expand description
Detects potentially destructive PowerShell commands and returns a warning
Functionsยง
- get_
destructive_ command_ warning - Checks if a PowerShell command matches known destructive patterns. Returns a human-readable warning string, or None if no destructive pattern is detected.