Search tickets based on criteria via Powershell API

Search tickets based on criteria via Powershell API

I want to search through tickets based on certain critera (see below) and output the ticket number/subjects at the end. I'm getting hung up on the subject line, as I want it to be based on finding duplicate names inside. How could I go about doing this?

Search criteria:
-status: not closed -and not resolved
-group: Helpdesk
-requester: HR
-subject: contains the same usernames (can use regex to filter the subjects if necessary)

For example (assuming tickets below meet status,group,requester criteria):
Ticket 10001 = "Test text 10/07/2020 John Smith"
Ticket 10002 = "Test again 10/20/2020 John Smithers"
Ticket 10003 = "test one more time ;ladsjflaksdf John Smith"

In the above example, the output results would be ticket 10001 and 10003.
      • Topic Participants

      • Chaz

                  New to ADSelfService Plus?