This blog articulates how to get list data in a CSV file and send that CSV as an attachment using PowerShell.