For this example, I have a list of first names
Fred Mark Tony Alisa Todd Emily
I would like to compare them to profiles in the user profile service
Fred Greg Tony Alisa John
And get output of all the names that are in the User Profile Service but not in the list.
I would like to delete those profiles that do not exist in the list. How can I do this via PowerShell?