Make sure we use a logon shell
Execute a command multiple times if -I is specified

Todo: There is some race condition, the start sometimes fails