I don't really want to call a jscript function at all. I want to define and set a bunch of variables. If I can make some methods that the script can call as well that would be even better.

And while I could achieve this more or less by requiring that users make a function with a specific name, then call it repeatedly in an "OnSetVariable()" type approach. This would be quite annoying for the users.

The link you provided allows the C++ to call into the script. I'm actually trying to do the reverse of this... I want the script to be able to access/read the C++ variables/code of the running instance of the exe. Multiple exe's might be running concurrently.