why a separate function rather than extending the existing one above? I don't like the duplication we end with between these two methods, at the very least the common code needs to be shared. I think it's better just to use the existing `RunCommandLine` with maybe just an extra if/else block at the bottom.