Create Permissions for SharePoint Online
This article provides instructions on how to create app permissions for SharePoint site by using PowerShell.
2. Connect to SharePoint Site
Connect-PnPOnline https://tenantname.sharepoint.com/sites/siteName -Interactive
Click to copy
You will be prompted to enter the credentials including the second factor.