Hi H Risbud
Vérify you use these modules :
Import-Module MSOnline
Import-Module ExchangeOnlineManagement
Import-Module MicrosoftTeams
Import-Module -Name Microsoft.Online.SharePoint.PowerShell
Import-Module PnP.PowerShell
It's more easier :
- create UnifiedGroup 365
- put users inside
- use New-Team -group ... to add Teams on this group
If you want personalize Team's Sharepoint you can use :
Connect-PnPOnline -Credential $credentials -Url $_site_sharepoint
Add-PnPFolder -Name "SCAN" -Folder ($_sharepoint_chemin + "/Documents partages/General") # by example for add folder
I hope bring some help to you