Get command name from action object