Your code works here (except the line EXECSCRIPT(filetostr('c:\test\test.txt')) because I didn't have such a file).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.