soc/api/v1/customproperties/New-CustomProperty.ps1

function New-CustomProperty
{
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory)]
        [object] $CustomProperty
    )
    
    if ($PSCmdlet.ShouldProcess($CustomProperty.name))
    {
        return Invoke-Api Post "/soc/api/v1/customproperties" -JsonBody $CustomProperty
    }
}