Extract invocation of shell into function
Try login and interactive shell for now