Add support for executing scripts

* Add function to get the do_repl line
* Add function to interrupt the do_repl