Hi, @Glenn Maxwell
Thank you for posting in Microsoft Q&A forum.
We can use the scripts function directly to create a PowerShell script, then approve it, then choose the device collection and right click it, click "Run Script".
Here is the detail:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add 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.
May we know the current status of the problem? Is there any other assistance we can provide?