Morning fella's!

Does anyone know if it is possible (and if so, got a code snippet) of how a program can call a text file to run as a script.

The script is just to build a database, but needs to interact via this thingy (yet to be made). I know I know, it seems cack handed..but hey its paying my wages.

Anyone know how I can do this?