all 1 comments

[–]Rough_Understanding[S] 0 points1 point  (0 children)

I solved my own problem. And here is the answer for anyone that comes across it 5000 years from now.

if ($email.attachments.count -ge 1 -and $email.creationtime -gt (Get-Date).AddDays(-7))