title: Send email from Powershell based on SQL result
body: <p>Newbie. I have a flat file which I want to SQL-query for a string from within a PowerShell script (example SQL: <code>SELECT * FROM '[LOGFILEPATH]' WHERE Field1 LIKE '%LOGIN%'</code>), and if the query returns any rows the PS script should send an email. I'll have other functions to add later but right now I need to know how to pass the result to PS and send an email accordingly. Thanks.</p>