It needs to get into "memory" from somewhere. Something that I do is run a script (from a file) that then uses my URL function to get code from a web server. That code sits in an in-memory string that I can then run via the Kix Execute command. Likewise, I can load INI data from a web server without ever having to save the INI data to a file.

This allows me to have a single "script" on an endpoint, which is tokenized, and then dynamically request another script to execute. The actions of the script can change based on the environment and task required. Each script can request web-config content as well. Here's a simple concept:
 Code:
$aResponse = Url('Some.web.site/file.kix', 'GET')  ; get the script
$Script = $aResponse[0]  ; this is the script as a string from the BODY element
$aResponse = Url('Some.web.site/file.ini', 'GET')  ; get the INI file
$aIni = Split($aResponse[0], @CRLF)  ; INI data as an array of lines from the BODY element
Global $aINIDATA ; global so it can be available in the Execute function
$aINIDATA = IniArray($aIni) ; Create an in-memory representation of the INI file
$Value = ReadIniArray($aINIDATA, 'SECTION_NAME', 'Value Name')  ; works just like ReadProfileString!
Execute($Script)
Of course, there should be some error checking involved from the URL call. @ERROR is set, as well as $Response[2] being the HTTP response code.

If you search for "SIT" - the System Interrogation Tool we collectively wrote some 15 years ago, it dynamically loads and initializes code modules that add capabilities to a core app. You can deploy the main app and two modules for limited functionality or add modules at-will to change or expand the functionality of the core application. Each module had a set of functions and a few variable declarations. Those variables defined the entry points and capabilities of the module. Every module worked the same way, so different people could write different modules. This might provide some additional ideas.

I'm a bit familiar with LUA, but don't know the context you're referencing. Can you refer to a document page?
_________________________
Actually I am a Rocket Scientist! \:D