SharePoint Online is a collaborative platform which is primarily used for document management and as a storage system. As with Exchange Online, it can be retrieved as a standalone service or with O365 in a bundle:
https://products.office.com/en-us/sharepoint/compare-sharepoint-plans:
In contrast to Exchange Online, you need to install the dedicated SharePoint Management Shell in advance, which can be found here:
https://www.microsoft.com/en-us/download/details.aspx?id=35588
For basic authentication with username and password, you can use the following code lines:
#Username / email address to connect to and manage SharePoint Online $adminUPN="[email protected]" #O365 organization name $orgName="examplecompany" #retrieving user credentials $userCredential = Get-Credential -UserName $adminUPN -Message "Type the password." #Using the sharepoint management shell cmdlet to connect to Sharepoint Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential...