Sort-Object -Unique now works.