#exchange search mailbox

get-mailbox [email protected] | Search-Mailbox -SearchQuery “Subject:Lunch time ” -TargetMailbox [email protected] -TargetFolder “inbox” -LogOnly -LogLevel Full -searchdumpster

Import-Csv “c:\scripts\users.csv” |ForEach-Object {Search-Mailbox -identity $_.MyUPN -SearchQuery “Subject:account” -TargetMailbox admin -TargetFolder “inbox” -LogOnly}

https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/search-mailbox?view=exchange-ps