title: how to close a dialog box in batch file by clicking OK
body: <p>I have a batch script which runs a command:</p>
  
  <pre><code>certreq -submit -attrib "CertificateTemplate:WebServer" CSR.csr CRT.crt
  </code></pre>
  
  <p>This produces a dialog box to named as "Select Certificate Authority" with OK and cancel button, I need to proceed with OK to complete that command. Can I do it with command to close the box by processing it with OK?</p>