From now on you can run it with filename argument. Closes the terminal when finished.
Bugfix: running script with file argument was bringing the frame in front without opening the file