Public/Service/Tickets/Copy-CWMTicket.ps1

function Copy-CWMTicket {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$false)]
        $ID,
        [Parameter(Mandatory=$false)]
        $Object
    )
    
    if (!$object) {
        $object = get-cwmticket -id $id
    }
    
    $Endpoint = '/service/tickets'
    Invoke-CWMPostMaster -Object $Object -Endpoint $Endpoint
 }