Very useful for me, just copy and paste:
Trigger:
Close All
Command:
powershell -command "(New-Object -comObject Shell.Application).Windows() | foreach-object {$_.quit()}; Get-Process | Where-Object {$_.MainWindowTitle -ne \"\"} | stop-process"
Have a nice day ~