Using Powershell to create SharePoint Sites and lists

Hello Okta World,

I am totally new to Okta. A client recently switched to Okta and I have many PowerShell scripts that create sites, list and assign permission for SharePoint on O365. I have not been able to locate any documentation or examples for this type of activity. The main area I need guidance on is authentication within the Powershell scripts, particularly because these run unattended.