Hi,
I am using below command to encrypt file, it has to take passphrase from command but it is populating window for passphrase.
echo mypassphrase | gpg --passphrase-fd 0 --sign --encrypt --armor -u xxxxxx -o E:\New\test.txt.gpg -r xxxxxx E:\New\test.txt