developer/api/v1/utilization/Get-Utilization.ps1

function Get-Utilization
{
    param(
        [Parameter(Mandatory)]
        [string] $WorkloadId,
        [datetime] $StartTime,
        [datetime] $EndTime
    )

    $query = ""

    if ($StartTime)
    {
        $query += "&startTime=$($StartTime | Get-Date -Format s)"
    }

    if ($EndTime)
    {
        $query += "&endTime=$($EndTime | Get-Date -Format s)"
    }

    $query = $query -replace "^&", "?"

    return Invoke-Api Get "/developer/api/v1/utilization/$WorkloadId/$query"
}