Support interactive running with -i/--interactive