config case_sensitive = false | preset=xdr_file | filter event_type = ENUM.FILE and 
 (agent_os_type = ENUM.AGENT_OS_WINDOWS and 
 (((actor_process_image_path in ("*\powershell.exe", "*\pwsh.exe")) and 
 action_file_name contains ".ps1") and 
 (not 
 (action_file_name contains "__PSScriptPolicyTest_" or 
 (action_file_name contains "C:\Users\" and 
 action_file_name contains "\AppData\Local\Temp\") or 
 action_file_name contains "C:\Windows\Temp\"))))