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:
https://learn.microsoft.com/en-us/mem/configmgr/apps/deploy-use/create-deploy-scripts
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.