Adds name attribute to command, for easier identification of the output and error messages.