PS> Install-Module PnP.PowerShell
First, authorize PnP to access SharePoint Online for admin purposes:
PS> Register-PnPManagementShellAccess
Next, connect to the SharePoint tenant:
PS> Connect-PnPOnline -Url https://[tenantname].sharepoint.com -Interactive
Test to make sure it's working:
PS> Get-PnPTenant