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