config case_sensitive = false | preset=xdr_file | filter event_type = ENUM.FILE and 
 (agent_os_type = ENUM.AGENT_OS_WINDOWS and 
 (action_file_name contains "__PSScriptPolicyTest_" and 
 (not 
 ((actor_process_image_path in ("C:\Program Files\PowerShell\7-preview\pwsh.exe", "C:\Program Files\PowerShell\7\pwsh.exe", "C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe", "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe", "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe")) or 
 ((actor_process_image_path in ("*C:\Program Files\WindowsApps\Microsoft.PowerShellPreview*", "*\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShellPreview*")) and 
 actor_process_image_path contains "\pwsh.exe") or 
 (actor_process_image_path in ("C:\Windows\System32\dsac.exe", "C:\Windows\System32\sdiagnhost.exe", "C:\Windows\System32\ServerManager.exe", "C:\Windows\System32\wsmprovhost.exe", "C:\Windows\SysWOW64\sdiagnhost.exe"))))))