Refactor interactive tunneling scripts, extract non-interactive counterparts