You could run following PowerShell.
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
$AdminCenterURL = "https://crescent-admin.sharepoint.com"
$SiteURL = "https://crescent.sharepoint.com/sites/legal"
#Get Credentials to connect
$Cred = Get-Credential
#Connect to SharePoint Online
Connect-SPOService -Url $AdminCenterURL -Credential $Cred
#Connect to Microsoft Teams
Connect-MicrosoftTeams -Credential $Cred
#Get the Site collection
$Site = Get-SPOSite -Identity $SiteURL
#Create Teams from the SharePoint Site
New-Team -GroupId $Site.GroupId.Guid
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.