add attachment to email from powershell script mailmessage code example
Example: how to send mail and attachment using powershell
$file = "C:\folder\file.csv"
$att = new-object Net.Mail.Attachment($file)
$file = "C:\folder\file.csv"
$att = new-object Net.Mail.Attachment($file)