Using this script
Place this batch file and the text file into the same directory, edit the batch file to specify the key server and the text file to specify the names to encrypt.
If you hit an issue where an individual has multiple keys against their name, the script may well complain and ditch responses.
In this case, uncomment the line in the batch file which says:
REM %COMMAND% --recv-keys <KEY ID>
So it should say instead:
%COMMAND% --recv-keys DECAFBAD