Add simple script support for writing to files