A little background first.
I\'ve been tasked with encrypting files with a Powershell script using GPG (gnupg.org). The specific exe I\'m calling is simply gpg.exe. I
Does the output you're expecting go to standard-error or standard-out?
does this work?
& $gpgLocation --import "key.txt" 2>&1 | out-file gpgout.txt