Called to determine if the exit code is successful; it if isn’t, an exception is thrown.
public Func<int, bool>? IsExitCodeSuccess { get; set; }