This doesn't cater for when `@stream` is neither `$stdout` or `$stderr`. How about using a case statement with the default just being `inspect`?