CmdID / PowerShell / Cmdlets / Undo
Undo-SoftDeletedUnifiedGroup
Use the Undo-SoftDeletedUnifiedGroup cmdlet to restore soft-deleted Microsoft 365 Groups in your cloud-based organization. Exchange PowerShell reference
From the Exchange PowerShell reference 3 parameters Its page in the reference
Parameters
-SoftDeletedObjectThe SoftDeletedObject parameter specifies the soft-deleted Microsoft 365 Group that you want to restore.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.