Here’s a Windows command line example for
gpg message encryption.
Install the open source Gpg4win to use gpg. Gpg4win is a email and file encryption package for Windows that includes the open source Gnu Privacy Guard. It implements the OpenPGP standard and is widely used to sign, verify, encrypt, and decrypt data.