Please try using the syntaxes like below which should work for you:
New-ComplianceSearch -Name "Search01" -ExchangeLocation "user1@contoso.com" -ContentMatchQuery 'From:"user2@contoso.com" AND subject:"Test 1:1"'
Start-ComplianceSearch "Search01"
And
New-ComplianceSearch -Name "Search02" -ExchangeLocation "user1@contoso.com" -ContentMatchQuery 'sent>=06/01/2020 AND sent<=10/31/2020 AND subject:"Test 1:1" AND From:"user2@contoso.com"'
Start-ComplianceSearch "Search02"
For more information: Use Compliance Search to search all mailboxes in Exchange Server
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.