Private/ArgumentCompleter/Get-OrbitAcSbTeamsIPPhonePolicy.ps1
# CsTeamsIPPhonePolicy function Get-OrbitAcSbTeamsIPPhonePolicy { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) $null = Assert-MicrosoftTeamsConnection $Values = (Get-CsTeamsIPPhonePolicy | Sort-Object -Property Identity).Identity -replace 'Tag:', '' $Values | Where-Object { $_ -like "*$WordToComplete*" } | ForEach-Object { $_ } } # [ArgumentCompleter({ Get-OrbitAcSbTeamsIPPhonePolicy @args })] Register-ArgumentCompleter -CommandName New-TeamsCommonAreaPhone -ParameterName IPPhonePolicy -ScriptBlock { Get-OrbitAcSbTeamsIPPhonePolicy @args } Register-ArgumentCompleter -CommandName Set-TeamsCommonAreaPhone -ParameterName IPPhonePolicy -ScriptBlock { Get-OrbitAcSbTeamsIPPhonePolicy @args } Register-ArgumentCompleter -CommandName Get-TeamsIPP -ParameterName Identity -ScriptBlock { Get-OrbitAcSbTeamsIPPhonePolicy @args } |