Moved user menu choice to a new function, getCommandChoice()