Public/System/Get-CWMUserDefinedFields.ps1

function Get-CWMUserDefinedFields {
    [CmdletBinding()]
    param(
        [int]$id,
        [switch]$count,
        [string]$condition,
        [ValidatePattern('\S* (desc|asc)')]
        [string]$orderBy,
        [string]$childConditions,
        [string]$customFieldConditions,
        [int]$page,
        [int]$pageSize,
        [string[]]$fields,
        [switch]$all
    )

    $Endpoint = '/system/userDefinedFields'
    Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint
}