@EnterpriseArchitect,Thanks for posting in Q&A.
From your description, I know that you want to know how to run the PowerShell script when it is uploaded into Intune.
Based on my research, there are some official documents to guide you how to configure PowerShell script.
https://video2.skills-academy.com/en-us/mem/intune/apps/intune-management-extension --Windows 10/11
https://video2.skills-academy.com/en-us/mem/intune/apps/macos-shell-scripts --macOS
Hope this can be helpful. If there is any update, feel free to contact me.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "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.