check if already SPOConnect code example Example: how to import microsoft.online sharepoint powershell Install-Module -Name Microsoft.Online.SharePoint.PowerShell