@Swahela Mulla Thanks for posting in our Q&A.
Honestly, it is more related to develop scope. Based on my search, there is no such PowerShell script provided.
If you are interested in this, it is suggested to post in intune feedback portal. It is a place to collect customers' requirements and problems. Here is the link:
https://feedbackportal.microsoft.com/feedback/forum/ef1d6d38-fd1b-ec11-b6e7-0022481f8472
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.