Attachment Parameter (Send-Email Cmdlet)
The path to any files which are to be attached to the message.
Syntax
Send-Email -Attachment string[]
Remarks
Set Attachment to the path of a file on your system that you would like to send as an attachment with your message. The cmdlet will open the file and encode its contents in MIME format.
Default Value
null