Tips/CustomOutput.ps1
$defaultProperties = @('Scopes','AccessToken') $defaultDisplayPropertySet = New-Object System.Management.Automation.PSPropertySet('DefaultDisplayPropertySet',[string[]]$defaultProperties) $PSStandardMembers = [System.Management.Automation.PSMemberInfo[]]@($defaultDisplayPropertySet) $Object | Add-Member MemberSet PSStandardMembers $PSStandardMembers |