Public/Procurement/ProductTypes/Get-CWMProductType.ps1

function Get-CWMProductType {
    [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 = '/procurement/types'
    Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint
}