ESAPI function to invoke the TPM2_ZGen_2Phase command either as a one-call or in an asynchronous manner.