Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
I gave up trying. I'm not currently going any further with it as I ended up doing the task manually.
However, after seeing you had a similar issue I just thought I'd ask ChatGPT to brainstorm the issue and it came up with some ideas on how to fix it. After a bit of messing about, I seem to have got it to work. Here are my settings.
Open up PowerShell 5.1 in Admin mode
Run "Update-Module -Name ExchangeOnlineManagement" (I assume you already have that module installed)
As a bit of a newbie with PowerShell with M365, I've noticed that to get best results, you often have to match the modules with a specific version of PowerShell for them to work as planned. I've got about 5 different versions of PowerShell if you include things like the ISE and SharePoint Online Management Shell and it's a bit of a lottery as to which modules work with which.