A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear Markus,
Good day! Thank you for posting to Microsoft Community. We are happy to help you.
As per your description, it seems that you are trying to loop workspaces via PowerShell cmd.
If the understanding above is right, considering that our category mainly focuses on general and built-in queries with Microsoft 365 and Office, we may have limited resources about PowerShell cmd for Loop workspaces, please check if the link shared in the official article can help.
For your reference: Manage Microsoft Syntex by using PowerShell - Microsoft Syntex | Microsoft Learn
If any further assistance needed, for PowerShell related queries, we have a dedicated channel 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 cmd and Loop workspace related queries. They will focus on the specific situation on your side and share suggestions for you. We are sure that experts from that team can address your query effectively and accurately.
Thanks for your understanding and cooperation! We hope you stay safe and healthy always.
Sincerely,
Rhoda | Microsoft Community Moderator