scripts: Implement REPL for TestSwarm environment