Welcome to the forum Wihu

I think you are asking how to list global variables from a script file so the values can be edited and injected later while the application is running.
You'll need to do something like this...
1) Create an instance of gmMachine and execute the script.
2) Call gmMachine::GetGlobals to access the global gmTableObject.
3) Use gmTableObject::GetFirst, GetNext to iterate the table and retrieve key & value gmVariables.
When the application is running you can access the global table again and call gmTableObject::Set to apply the replacement values.
Hope that gets you started.
(There are other ways to achieve this, such as writing a script that does a foreach loop and calls a bound function to accumulate the global table contents. You could apply global variables by executing strings with assignment operations. I don't recommend these methods, just suggesting how it is possible to use native, script or both to achieve these kinds of goals.)