              if (app.brk_refresh) {
                    commands["BrkRefresh"] = [`$tokens = Invoke-Refresh -RefreshToken $PortalArmToken -ClientID '${app.client_id}' -BrkClientId 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c' -RedirectUri 'brk-c44b4083-3bb0-49c1-b47d-974e53cbdf3c://portal.azure.com' -Origin 'https://portal.azure.com'`];
                }

                return { "EntraTokenAid": commands };
            }

            let showGraphPermissionsOnly = false; // Toggle state
            document.getE