Private/Get-TLDefaultScope.ps1

function Get-TLDefaultScope {
    <#
    .SYNOPSIS
        Returns the union of all read-only Graph scopes required by the shipped collectors.
    #>

    [CmdletBinding()]
    param()

    $scopes = foreach ($collector in Get-TLCollector) { $collector.RequiredScopes }
    return @($scopes | Where-Object { $_ } | Sort-Object -Unique)
}