Unable to Get-UAScript

Thanks, i’ll take a look !

Is there is another way to get results from jobs or scripts than a web api and its associated token ?

EDIT : With -AppToken i get this error Index was outside the bounds of the array
I try to understand where this come from (maybe here Index was outside the bounds of the array )

As far as i know it is somewhere here :

    $LastTenComputerReports = Get-UAScript -Name 'Computer Report.ps1' | Get-UAJob -OrderBy Id -OrderDirection Ascending -First 25 | Get-UAJobPipelineOutput
	
    $Data = @()
    foreach($jobOutput in $LastTenComputerReports)
    {
        $Location = $jobOutput.Location
        
        $record = @{}
        $Location | ForEach-Object {
            if ($_.Label -ne $null) 
            {
                $record[$_.Label.Split(',')[0]] = [int]$_.Value
            }
        }
        if ($record.Count -ne 0)
        {
            $Data += $record
        }
    }
    
    New-UDNivoChart -Stream -Data $Data -Height 500 -Responsive -Keys @('hailey', 'madison')

If i try to output the value of Data (for 3000 computers) :

Name                           Value
----                           -----
                               4771
                               4771
                               4771

Maybe it is because the Location attribute isn’t populated in this forest …