How to run SharePoint Management Shell in SharePoint 365 online? code example
Example: how to import microsoft.online sharepoint powershell
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Install-Module -Name Microsoft.Online.SharePoint.PowerShell