In this video blog, I have shown the process of creating of Microsoft Teams team using Graph API and PowerShell. The script is using the same concept that you would use in any custom application. I have used PnPPowerShell for authentication and access token. The script for this video is available at the link below.
https://github.com/jerryyasir/Samples/tree/master/CreateTeamWithoutTemplates