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 ...