CmdID / PowerShell / Cmdlets / Set
Set-TeamArchivedState
This cmdlet is used to freeze all of the team activity, but Teams Administrators and team owners will still be able to add or remove members and update roles. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 3 parameters Its page in the reference
Parameters
-ArchivedBoolean value that determines whether or not the Team is archived.-GroupIdGroupId of the team-SetSpoSiteReadOnlyForMembersUse this parameter switch to make the SharePoint site read-only for team members.