title: send email with 1 or more attachments
body: <p>I have a script that will send up to 4 different attachments. The script will always send at least 1 attachment.</p>
  <pre><code>    Send-MailMessage -to $EmailTo -Body $Body -Subject &quot;$TodayDate Report&quot; -Attachments $UsersResultFileName,$NumbersTableFilename -From 'r-@doman.com' -SmtpServer 'server' -port '25' -BodyAsHtml -ErrorAction Stop
  </code></pre>
  <p>Each variable in attachments can lead to a path and a file name.</p>
  <p>The issue I am having is sometimes a variable is empty or null. When that happens the <code>send-mail</code> fails with an error saying an attachment is null and the error is not wrong.</p>
  <p>I know I can <code>if</code> my way to all the combinations but there has to be another way?</p>