Public/Sales/Orders/Get-CWMSalesOrder.ps1

function Get-CWMSalesOrder {
    [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 = '/sales/orders'
    Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint
 }