The script below provides the ability to create a Microsoft Team using Microsoft Teams PowerShell Module. You must install the latest version of the module from PowerShell Gallery. The script uses a CSV File as input. For Authentication you have the option to use Azure Active Directory App (Preview) with certificate authentication or simply cloud based authentication using local credentials.
You must login to Azure Active Directory to create the Azure Active Directory Application inside preview. Then create a self signed certificate and upload that to Azure AD App. You can then use the thumbprint to connect to Microsoft Teams Module. You must also specify the Current user as Owner as App based authentication requires at least one Team Owner.
The script can be downloaded from