Public/Search-TierGroup.ps1

Function Search-TierGroup {
    [CmdletBinding()]
    param (
        [Parameter(
            Mandatory,
            ValueFromPipeline,
            ValueFromPipelineByPropertyName
        )]
        $Groups
    )
    Begin {}
    Process {
        Foreach ($Group in $Groups) {
            Get-ADGroup -Filter "Name -like 'T1_$Group*' -or Name -like 'T0_$Group*'" | Select-Object DistinguishedName, Name, SamAccountName, SID 
        }
    }
    End {}
}