@H Mohamed ,
I tried lots of research but find no direct command to realize this. So, it needs some more scripts to accomplish it. As script is not in our service scope, I will just provide a simple train of thought. Thanks for your understanding.
Firstly, you could get the members’ email address of “Test-01” group by Get-UnifiedGroupLinks command:
Get-UnifiedGroupLinks -Identity <Test-01 GroupId> -LinkType Members
Then, use Add-TeamUser command to add all the members to “Class-Test-2021” group. Here we need a loop statement, such as Foreach:
Add-TeamUser GroupId <Class-Test-2021 group Id> -User <member’s email address>
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.