Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Dear MiaEB
Good day! Thank you for posting to Microsoft Community. We are happy to help you!
Based on your description, for this, since your problem is related to PowerShell Script and this is really out of support scope, to help you better, we have now our dedicate team for this kind of consult and issue , I recommend that you post your query (based on) in Category: PowerShell | Microsoft Community Hub. Technical engineers over there specialize in PowerShell issues, and experts will focus on queries to further assist you.
Thanks in advance for your understanding!
Your patience and cooperation will be highly appreciated. Hope you all the best! Happy new year to you!
Sincerely,
Katherine