I used to be able to use the Microsoft.Xrm.OnlineManagementAPI powershell module with a service account with Service Admin rights. The new Microsoft.PowerApps.Administration.PowerShell module requires global admin and that the user has logged into the power apps admin center.
These requirements mean there is no upgrade path for scripts that are pulling information out from PowerApps as no organization in its right mind is going to give global admin rights out to every body, and definitely not to a service account.
I have a simple script that extracts information on all D365 instances in our tenant and posts it somewhere our developers can see it. I've updated it to use the new module but cannot get an account to run it under.