Changing the result to a new CommandResult in order to capture the outpu...

...t of the executed command.