Optionally output command result