Public/New-DTXEntry.ps1

Function New-DTXEntry {
    param(
        # Parameter help description
        [Parameter(Mandatory)]
        [String]
        $ProjectCode,
        # Parameter help description
        [Parameter(Mandatory)]
        [String]
        $ProjectTask,

        # Parameter help description
        [Parameter(Mandatory)]
        [String]
        $Month,

        # Parameter help description
        [Parameter(Mandatory)]
        [String[]]
        $DayEntry
    )

    $Uri = "/project?project=$ProjectCode&Task=$ProjectTask&month=$Month&" + ($DayEntry -join "&")
    $Splat = @{
        Uri = $Uri
        Method = "POST"
        ContentType = "application/x-www-form-urlencoded"
    }
    
    Invoke-DTXAPI @Splat
}