Public/Sales/Opportunities/Convert-CWMSalesOpportunityToSalesOrder.ps1

function Convert-CWMSalesOpportunityToSalesOrder {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$true)]
        $ID,
        [Parameter(Mandatory=$false)]
        $Object
    )

    $Endpoint = "/sales/opportunities/$($id)/converttoSalesOrder"
    Invoke-CWMPostMaster -Object $Object -Endpoint $Endpoint
 }