Ok I haven’t actually tried the right-click options, but I think you’ll find something along these lines…
When using a .REG file to import the string value to the registry, the string value must be enclosed in quotes.
When embedding quotes inside the reg value, you escape the embedded doublequotes with backslash as in "
When embedding doublequotes inside a Relevance string, you percent-encode the character value based on the ASCII table. The ASCII value for the doublequote is decimal 22, so you use %22 in place of quotes.
Now, the reg value should be the string you want it to execute. If you were in the Presentation Debugger or Web Reports QnA, you want the resulting string value to be the literal command line that you’re passing along to the shell on the Console machine:
bomgar-rep.exe --run-script "action=push_and_start_local&hostname=X12345"
The query to generate that would be something like
“bomgar-rep.exe --run-script %22action=push_and_start_local&hostname=” & (value of property results whose (name of property of it = “DNS Name”) of current computer) & “%22”
Then if you are using a .reg file to import that, I think it would be something like
ShellCommandRelevance"="\"bomgar-rep.exe --run-script %22action=push_and_start_local&hostname=\" & (value of property results whose (name of property of it = \"DNS Name\") of current computer) & \"%22\"""
Let me know if that works.
Otherwise, please copy-paste the command line that works here. Screenshots aren’t as helpful as being able to copy/paste, and in your screenshot you have four different bomgar commands with different quoting and don’t really illustrate which one works.