CmdID / PowerShell / Cmdlets / Get
Get-TeamUser
Returns users of a team. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 2 parameters Its page in the reference
Parameters
-GroupIdGroupId of the team-RoleFilter the results to only users with the given role: Owner or Member.