Executes the target command.
A CommandResult with the updated game state or an error message.
Optional argument to enable/disable target mode.
The current game context.