DeviceProcessEvents | where (ProcessVersionInfoFileDescription contains "7-Zip" or (FolderPath endswith "\\7z.exe" or FolderPath endswith "\\7zr.exe" or FolderPath endswith "\\7za.exe") or (ProcessVersionInfoOriginalFileName in~ ("7z.exe", "7za.exe", "7zr.exe"))) and ProcessCommandLine contains " -p" and (ProcessCommandLine contains " a " or ProcessCommandLine contains " u ")