This blog helps to add bulk users to teams in Microsoft Teams using PowerShell. Also, provides additional use cases to add guests and owners.
— Read on m365scripts.com/microsoft-teams/how-to-add-bulk-users-to-teams-in-microsoft-teams/