@Hyugai Thanks for posting in our Q&A.
For this issue, please make sure Microsoft Intune management extension is installed and Microsoft Intune management service is running.
Then we can refer to the following link to deep dive this issue:
https://oliverkieselbach.com/2017/11/29/deep-dive-microsoft-intune-management-extension-powershell-scripts/
Note: Non-Microsoft link, just for the reference.
If there is anything update, feel free to let us know.
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 "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.