CmdID / PowerShell / Cmdlets / Get
Get-TeamAllChannel
This cmdlet supports retrieving all channels of a team, including incoming channels and channels hosted by the team. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 2 parameters Its page in the reference
Parameters
-GroupIdReturns the Group ID of the team.-MembershipTypeMembership type of the channel to display; Standard, Private, or Shared