Here's how
You can't exactlty do what you want but you can compile a string into a function
then retrive returnvalue or pass parameters to it.
Code:
local compiledscript = compilestring("return 20");
local result = compiledscript();
print("result = " + result + "\n");
local compiledscript2 = compilestring("print(\"param0 = \" + vargv[0]);");
compiledscript2("I'm a prameter");
ciao
Alberto