Public/account/Get-Organization.ps1
function Get-Organization { <# .SYNOPSIS List organization metadata .DESCRIPTION Additional information is available with the -Help parameter .PARAMETER HELP Output dynamic help information #> [CmdletBinding(DefaultParameterSetName = 'GetV2AccountOrganization')] [OutputType()] param( [Parameter( ParameterSetName = 'DynamicHelp', Mandatory = $true)] [switch] $Help ) DynamicParam { # Endpoint(s) used by function $Endpoints = @('GetV2AccountOrganization') # Create runtime dictionary return (Get-Dictionary $Endpoints -OutVariable Dynamic) } process { if ($Help) { # Output dynamic help Get-DynamicHelp $MyInvocation.MyCommand.Name } else { # Make request Invoke-Endpoint 'GetV2AccountOrganization' } } } |