CmdID / PowerShell / Cmdlets / Update
Update-ComplianceCaseMember
Use the Update-ComplianceCaseMember cmdlet to replace all members of eDiscovery cases in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 4 parameters Its page in the reference
Parameters
-CaseThe Case parameter specifies the name of the eDiscovery case that you want to modify.-MembersThe Members parameter specifies the users that replace the current eDiscovery case members.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.