Refactor MMShellMain to loop through commands. (no pipe support yet)