Refactor scripts for non-interaction running (without pause)