using lua. to avoid trouble with dlls and so and whatnot, lua source code is included in here
codename ConsoleApplication1 (deal with it) :D
how to load script?
setoption name Lua Script value "....full path ....\main.lua"
if you update the script?
setoption name Reload Scripts