Lua sharing data with batch files

Jun 28, 2008
I recently installed Take Command with Lua. I am new to Lua but have been using 4Dos, 4Nt, and Take Command since the mid-1980s. I have never used Lua, but I like what I see. My question is how do I share information, data, between Lua code and Take Command code? I have found os.getenv to get information from my operating system environment table. But I have not found a corresponding setenv or putenv. It seems to me that I can share information from Take Command to Lua script, but I cannot see how to get information back from Lua script to my original batch script. I am probably missing something obvious, but if someone can give me some guidance I will appreciate it.
winapi.setenv(name, value)?

I have read that it only child processes see the new variable. I'd guess that that's not true if LUA is embedded, and that the current process's environment will be changed.
Let us know.