SELECT * FROM events WHERE devicetype=12 AND (LOWER(Command) LIKE '% -s cmd%' OR LOWER(Command) LIKE '% /s cmd%' OR LOWER(Command) LIKE '% –s cmd%' OR LOWER(Command) LIKE '% —s cmd%' OR LOWER(Command) LIKE '% ―s cmd%' OR LOWER(Command) LIKE '% -s -i cmd%' OR LOWER(Command) LIKE '% -s /i cmd%' OR LOWER(Command) LIKE '% -s –i cmd%' OR LOWER(Command) LIKE '% -s —i cmd%' OR LOWER(Command) LIKE '% -s ―i cmd%' OR LOWER(Command) LIKE '% /s -i cmd%' OR LOWER(Command) LIKE '% /s /i cmd%' OR LOWER(Command) LIKE '% /s –i cmd%' OR LOWER(Command) LIKE '% /s —i cmd%' OR LOWER(Command) LIKE '% /s ―i cmd%' OR LOWER(Command) LIKE '% –s -i cmd%' OR LOWER(Command) LIKE '% –s /i cmd%' OR LOWER(Command) LIKE '% –s –i cmd%' OR LOWER(Command) LIKE '% –s —i cmd%' OR LOWER(Command) LIKE '% –s ―i cmd%' OR LOWER(Command) LIKE '% —s -i cmd%' OR LOWER(Command) LIKE '% —s /i cmd%' OR LOWER(Command) LIKE '% —s –i cmd%' OR LOWER(Command) LIKE '% —s —i cmd%' OR LOWER(Command) LIKE '% —s ―i cmd%' OR LOWER(Command) LIKE '% ―s -i cmd%' OR LOWER(Command) LIKE '% ―s /i cmd%' OR LOWER(Command) LIKE '% ―s –i cmd%' OR LOWER(Command) LIKE '% ―s —i cmd%' OR LOWER(Command) LIKE '% ―s ―i cmd%' OR LOWER(Command) LIKE '% -i -s cmd%' OR LOWER(Command) LIKE '% -i /s cmd%' OR LOWER(Command) LIKE '% -i –s cmd%' OR LOWER(Command) LIKE '% -i —s cmd%' OR LOWER(Command) LIKE '% -i ―s cmd%' OR LOWER(Command) LIKE '% /i -s cmd%' OR LOWER(Command) LIKE '% /i /s cmd%' OR LOWER(Command) LIKE '% /i –s cmd%' OR LOWER(Command) LIKE '% /i —s cmd%' OR LOWER(Command) LIKE '% /i ―s cmd%' OR LOWER(Command) LIKE '% –i -s cmd%' OR LOWER(Command) LIKE '% –i /s cmd%' OR LOWER(Command) LIKE '% –i –s cmd%' OR LOWER(Command) LIKE '% –i —s cmd%' OR LOWER(Command) LIKE '% –i ―s cmd%' OR LOWER(Command) LIKE '% —i -s cmd%' OR LOWER(Command) LIKE '% —i /s cmd%' OR LOWER(Command) LIKE '% —i –s cmd%' OR LOWER(Command) LIKE '% —i —s cmd%' OR LOWER(Command) LIKE '% —i ―s cmd%' OR LOWER(Command) LIKE '% ―i -s cmd%' OR LOWER(Command) LIKE '% ―i /s cmd%' OR LOWER(Command) LIKE '% ―i –s cmd%' OR LOWER(Command) LIKE '% ―i —s cmd%' OR LOWER(Command) LIKE '% ―i ―s cmd%' OR LOWER(Command) LIKE '% -s pwsh%' OR LOWER(Command) LIKE '% /s pwsh%' OR LOWER(Command) LIKE '% –s pwsh%' OR LOWER(Command) LIKE '% —s pwsh%' OR LOWER(Command) LIKE '% ―s pwsh%' OR LOWER(Command) LIKE '% -s -i pwsh%' OR LOWER(Command) LIKE '% -s /i pwsh%' OR LOWER(Command) LIKE '% -s –i pwsh%' OR LOWER(Command) LIKE '% -s —i pwsh%' OR LOWER(Command) LIKE '% -s ―i pwsh%' OR LOWER(Command) LIKE '% /s -i pwsh%' OR LOWER(Command) LIKE '% /s /i pwsh%' OR LOWER(Command) LIKE '% /s –i pwsh%' OR LOWER(Command) LIKE '% /s —i pwsh%' OR LOWER(Command) LIKE '% /s ―i pwsh%' OR LOWER(Command) LIKE '% –s -i pwsh%' OR LOWER(Command) LIKE '% –s /i pwsh%' OR LOWER(Command) LIKE '% –s –i pwsh%' OR LOWER(Command) LIKE '% –s —i pwsh%' OR LOWER(Command) LIKE '% –s ―i pwsh%' OR LOWER(Command) LIKE '% —s -i pwsh%' OR LOWER(Command) LIKE '% —s /i pwsh%' OR LOWER(Command) LIKE '% —s –i pwsh%' OR LOWER(Command) LIKE '% —s —i pwsh%' OR LOWER(Command) LIKE '% —s ―i pwsh%' OR LOWER(Command) LIKE '% ―s -i pwsh%' OR LOWER(Command) LIKE '% ―s /i pwsh%' OR LOWER(Command) LIKE '% ―s –i pwsh%' OR LOWER(Command) LIKE '% ―s —i pwsh%' OR LOWER(Command) LIKE '% ―s ―i pwsh%' OR LOWER(Command) LIKE '% -i -s pwsh%' OR LOWER(Command) LIKE '% -i /s pwsh%' OR LOWER(Command) LIKE '% -i –s pwsh%' OR LOWER(Command) LIKE '% -i —s pwsh%' OR LOWER(Command) LIKE '% -i ―s pwsh%' OR LOWER(Command) LIKE '% /i -s pwsh%' OR LOWER(Command) LIKE '% /i /s pwsh%' OR LOWER(Command) LIKE '% /i –s pwsh%' OR LOWER(Command) LIKE '% /i —s pwsh%' OR LOWER(Command) LIKE '% /i ―s pwsh%' OR LOWER(Command) LIKE '% –i -s pwsh%' OR LOWER(Command) LIKE '% –i /s pwsh%' OR LOWER(Command) LIKE '% –i –s pwsh%' OR LOWER(Command) LIKE '% –i —s pwsh%' OR LOWER(Command) LIKE '% –i ―s pwsh%' OR LOWER(Command) LIKE '% —i -s pwsh%' OR LOWER(Command) LIKE '% —i /s pwsh%' OR LOWER(Command) LIKE '% —i –s pwsh%' OR LOWER(Command) LIKE '% —i —s pwsh%' OR LOWER(Command) LIKE '% —i ―s pwsh%' OR LOWER(Command) LIKE '% ―i -s pwsh%' OR LOWER(Command) LIKE '% ―i /s pwsh%' OR LOWER(Command) LIKE '% ―i –s pwsh%' OR LOWER(Command) LIKE '% ―i —s pwsh%' OR LOWER(Command) LIKE '% ―i ―s pwsh%' OR LOWER(Command) LIKE '% -s powershell%' OR LOWER(Command) LIKE '% /s powershell%' OR LOWER(Command) LIKE '% –s powershell%' OR LOWER(Command) LIKE '% —s powershell%' OR LOWER(Command) LIKE '% ―s powershell%' OR LOWER(Command) LIKE '% -s -i powershell%' OR LOWER(Command) LIKE '% -s /i powershell%' OR LOWER(Command) LIKE '% -s –i powershell%' OR LOWER(Command) LIKE '% -s —i powershell%' OR LOWER(Command) LIKE '% -s ―i powershell%' OR LOWER(Command) LIKE '% /s -i powershell%' OR LOWER(Command) LIKE '% /s /i powershell%' OR LOWER(Command) LIKE '% /s –i powershell%' OR LOWER(Command) LIKE '% /s —i powershell%' OR LOWER(Command) LIKE '% /s ―i powershell%' OR LOWER(Command) LIKE '% –s -i powershell%' OR LOWER(Command) LIKE '% –s /i powershell%' OR LOWER(Command) LIKE '% –s –i powershell%' OR LOWER(Command) LIKE '% –s —i powershell%' OR LOWER(Command) LIKE '% –s ―i powershell%' OR LOWER(Command) LIKE '% —s -i powershell%' OR LOWER(Command) LIKE '% —s /i powershell%' OR LOWER(Command) LIKE '% —s –i powershell%' OR LOWER(Command) LIKE '% —s —i powershell%' OR LOWER(Command) LIKE '% —s ―i powershell%' OR LOWER(Command) LIKE '% ―s -i powershell%' OR LOWER(Command) LIKE '% ―s /i powershell%' OR LOWER(Command) LIKE '% ―s –i powershell%' OR LOWER(Command) LIKE '% ―s —i powershell%' OR LOWER(Command) LIKE '% ―s ―i powershell%' OR LOWER(Command) LIKE '% -i -s powershell%' OR LOWER(Command) LIKE '% -i /s powershell%' OR LOWER(Command) LIKE '% -i –s powershell%' OR LOWER(Command) LIKE '% -i —s powershell%' OR LOWER(Command) LIKE '% -i ―s powershell%' OR LOWER(Command) LIKE '% /i -s powershell%' OR LOWER(Command) LIKE '% /i /s powershell%' OR LOWER(Command) LIKE '% /i –s powershell%' OR LOWER(Command) LIKE '% /i —s powershell%' OR LOWER(Command) LIKE '% /i ―s powershell%' OR LOWER(Command) LIKE '% –i -s powershell%' OR LOWER(Command) LIKE '% –i /s powershell%' OR LOWER(Command) LIKE '% –i –s powershell%' OR LOWER(Command) LIKE '% –i —s powershell%' OR LOWER(Command) LIKE '% –i ―s powershell%' OR LOWER(Command) LIKE '% —i -s powershell%' OR LOWER(Command) LIKE '% —i /s powershell%' OR LOWER(Command) LIKE '% —i –s powershell%' OR LOWER(Command) LIKE '% —i —s powershell%' OR LOWER(Command) LIKE '% —i ―s powershell%' OR LOWER(Command) LIKE '% ―i -s powershell%' OR LOWER(Command) LIKE '% ―i /s powershell%' OR LOWER(Command) LIKE '% ―i –s powershell%' OR LOWER(Command) LIKE '% ―i —s powershell%' OR LOWER(Command) LIKE '% ―i ―s powershell%') AND (NOT((LOWER(Command) LIKE '%paexec%' OR LOWER(Command) LIKE '%psexec%' OR LOWER(Command) LIKE '%accepteula%')))