DOS prompt command to run Gpg4win

I would like to automate encrypting using a dos prompt command from another program. What would the format of the command be?

You can use the “gpg” command for OpenPGP and “gpgsm” command for S/MIME.