Thank you very much for your kind advice! Your command definitely generates a .fa file; however, there seems to be an error while trying to fill it with data, which is as follows:
<ERROR>NCBI C++ Exception:
Error: TXCLIENT(CException::eUnknown) "/pubmed_gen/rbuild/version/20221011/entrez/2.16.1/src/internal/txclient/TxClient.cpp", line 1045: ncbi::CTxRawClientImpl::readAll() --- Read failed: EOF (the other side has unexpectedly closed connection), peer: 130.14.18.59:8064</ERROR>
It also produces a long string of IDs, which I assume are the results requested from PubMed. This isn't the first time I've encountered this error, which is part of the reason I'm asking for advice to see if it's a code issue or some other problem. Do you have any idea what this could be caused by?