I happened to create a sample endpoint detection policy and script which I am posting for your reference. You can use this in your deployment.
------------------------------------------------------------
· Create a vbscript that would perform the detection. The sample is as shown in the figure below.
<Whale_installation_folder>\e-Gap\von\InternalSite\CustomUpdate
g_scriptList("/InternalSite/CustomUpdate/registrycheck.vbs") = false
Checks:
You would see the policy that you created (Shown in the above figure), or the name of registry key as shown below.
This implies that you reg check is working.