This is a modified PSADT script to create custom detection key in Windows Registry
To use the script, modify the it to the application you are going to deploy via Microsoft Intune For example changing the name of the application in the Windows Registry path and in the install script
The script is explained in details in this video: https://youtu.be/8Ackl3UEv6g