There is a plugin called GSTScript. http://www.gstools.de/

Maybe that's something for you.