Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hello Joao,
Based on my tests and research for the MSOnline Windows Powershell, as far as I know Connect-MSOlService currently is not supported to be run from Windows PowerShell V7 or later versions. If you want to connect to Microsoft 365 services from Windows PowerShell V7 or later, it is recommended that please use Azure Active Directory PowerShell for Graph module or Azure PowerShell. For more details, please refer to https://docs.microsoft.com/en-us/microsoft-365/enterprise/connect-to-microsoft-365-powershell?view=o365-worldwide >> Connect with the Microsoft Azure Active Directory Module for Windows PowerShell
Please feel free to let me know if you have any other concern, thanks.
Best Regards,
Oliver