To install the latest version, run the following command after opening Windows PowerShell as an administrator.
Install-Module -Name MSOnline -RequiredVersion 1.1.183.81 -Force
Please note that Microsoft plans to deprecate the entire MSOnline PowerShell module by 30 March, 2025. We are actively working to eliminate this dependency with an upcoming update.