Public/Objects/Remove-DuplicateObjects.ps1

function Remove-DuplicateObjects {
    [CmdletBinding()]
    param(
        $Object,
        $Property
    )
    $MyObjects = $Object | Sort-Object -Property $Property -Unique
    return $MyObjects
}