public/serviceEndpoint/Get-PSTSAgentQueue.ps1

function Get-PSTSAgentQueue
{
    param(
         [Parameter(Mandatory=$true)][string] $project
    )

    process {

        $content = `
        _PSTSAPI `
            -resource "distributedtask/queues" `
            -method "GET" `
            -project $project `
            -apiVersion "5.1"

        return [AgentQueue[]]$content.value
    }
}