ENG-5321: Add a method to round trip an invocation for command logging.