Return the command object to controller

command is invalid if getCommandType return INVALID