Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Dear Tayeb Lograda,
Thanks for posting in Microsoft community. We are glad to help you.
We'd love to help, considering we mainly focus on general and build-in queries in Microsoft365 applications, we may have limited resource about AzureAD and PowerShell script.
At the same time, considering we have a dedicated channel Azure Active Directory - Microsoft Q&A, for you to be assisted properly, we sincerely recommend you go to that community and post a new thread, members and engineers over there are proficient in the knowledge of PowerShell scripts queries. They will focus on the specific situation on your side and share specific suggestions. We are sure that our experts from that team can address your query effectively and accurately.
Thanks for your understanding and cooperation! Hope you keep safe and healthy always.
Sincerely,
Sean | Microsoft Community Moderator