@@ -621,7 +621,7 @@ $OutputTransformations
621621 }
622622
623623 hidden [string ] GetParametersDefinitions([PSCustomObject ] $Command ) {
624- $commonParameterNames = @ (" Verbose" , " Debug" , " ErrorAction" , " ErrorVariable" , " WarningAction" , " WarningVariable" , " OutBuffer" , " PipelineVariable" , " OutVariable" , " InformationAction" , " InformationVariable" , " WhatIf" , " Confirm" )
624+ $commonParameterNames = @ (" ProgressAction " , " Verbose" , " Debug" , " ErrorAction" , " ErrorVariable" , " WarningAction" , " WarningVariable" , " OutBuffer" , " PipelineVariable" , " OutVariable" , " InformationAction" , " InformationVariable" , " WhatIf" , " Confirm" )
625625 $ignorePropertyParameter = @ (" Get-EntraBetaApplicationPolicy" , " Get-EntraBetaApplicationSignInSummary" , " Get-EntraBetaMSPrivilegedRoleAssignment" , " Get-EntraBetaMSTrustFrameworkPolicy" , " Get-EntraBetaPolicy" , " Get-EntraBetaPolicyAppliedObject" , " Get-EntraBetaServicePrincipalPolicy" , " Get-EntraApplicationLogo" , " Get-EntraBetaApplicationLogo" , " Get-EntraApplicationKeyCredential" , " Get-EntraBetaApplicationKeyCredential" , " Get-EntraBetaServicePrincipalKeyCredential" , " Get-EntraBetaServicePrincipalPasswordCredential" , " Get-EntraServicePrincipalKeyCredential" , " Get-EntraServicePrincipalPasswordCredential" )
626626 $params = $ (Get-Command - Name $Command.Old ).Parameters
627627 $paramsList = @ ()
@@ -680,18 +680,36 @@ $OutputTransformations
680680
681681 foreach ($attrib in $param.Attributes ){
682682 $arrayAttrib = @ ()
683- if ($attrib.ParameterSetName -ne " __AllParameterSets" ){
684- $arrayAttrib += " ParameterSetName = `" $ ( $attrib.ParameterSetName ) `" "
685- }
686- if ($attrib.Mandatory ){
687- $arrayAttrib += " Mandatory = `$ true"
688- }
689- if ($attrib.ValueFromPipeline ){
690- $arrayAttrib += " ValueFromPipeline = `$ true"
683+
684+ try {
685+ if ($attrib.ParameterSetName -ne " __AllParameterSets" ){
686+ $arrayAttrib += " ParameterSetName = `" $ ( $attrib.ParameterSetName ) `" "
687+ }
691688 }
692- if ($attrib.ValueFromPipelineByPropertyName ){
693- $arrayAttrib += " ValueFromPipelineByPropertyName = `$ true"
689+ catch {}
690+
691+ try {
692+ if ($attrib.Mandatory ){
693+ $arrayAttrib += " Mandatory = `$ true"
694+ }
695+ }
696+ catch {}
697+
698+
699+ try {
700+ if ($attrib.ValueFromPipeline ){
701+ $arrayAttrib += " ValueFromPipeline = `$ true"
702+ }
703+ }
704+ catch {}
705+
706+ try {
707+ if ($attrib.ValueFromPipelineByPropertyName ){
708+ $arrayAttrib += " ValueFromPipelineByPropertyName = `$ true"
709+ }
694710 }
711+ catch {}
712+
695713 $strAttrib = $arrayAttrib -Join ' , '
696714
697715 if ($strAttrib.Length -gt 0 ){
0 commit comments