How to perform CDDB queries in batch mode?

Just insert all CDs you want to query into the actual drive EAC uses (do not edit any data!), afterwards press Alt-P.