monitors a scripts and runs it whenever it is updated.