Request for tutorial for non-GUI use of GPG4Win

I know how to use Kleopatra, but how do I do the following functions from the command-line (as needed for the “vanilla” form of GPG4Win)?
Create a PGP keypair
Import a PGP keypair backup (either from file, or from clipboard)
Import a PGP public key/cert (either from file, or from clipboard)
Encrypt, Decrypt, Sign, Verify a file (or clipboard text) using PGP keys
Import an x.509 keypair backup (either from file, or from clipboard)
Import an x.509 public key/cert (either from file, or from clipboard)
Encrypt, Decrypt, Sign, Verify a file (or clipboard text) using PGP keys

Here’s some functions that you can’t do from Kleopatra, but I’ve heard that you can do from the command-line programs directly, and I want to know how to do them.
Read an x.509 request file (as generated by GPG4Win) and generate an x.509 keypair from that request.
Create x.509 root keypair (if I want to act as my own CA)
Create x.509 a keypair and sign it with a root private key

I have found this site very helpful for gpg command line help: http://www.spywarewarrior.com/uiuc/gpg/gpg-com-4.htm

Here is another on command line: https://www.gnupg.org/documentation/manuals/gnupg/Operational-GPG-Commands.html

And one about moving keys: https://montemazuma.wordpress.com/2010/03/01/moving-a-gpg-key-privately/

Hope this helps,

  • Greg