Add missing print-command-status utility function