Get a module version for a list of modules Context


Drush version 8.x
Drupal 7 site


Problem


Mr. HtraenuRekaos has a text file with a list of Drupal contrib modules.
He wants to get the recommended-install version of all the modules in the list.
This list is not associated with any pre-existing site, and none of the modules are currently installed.


Non-solutions


Mr. H has already looked at this SO post: Using wget to get the latest module version, but he does not want to use wget, he wants to use drush
Mr. H does not want to actually download or install the relevant modules, he only wants to get a list with the latest recommended D7.x version.


Question(s)


Is there a drush command that will turn before into after?


Before

MODULE_NAME_HERE    ;; RECCO_VERSION_HERE
contrib_module_001   ;;   __blank__
foobar_module        ;;   __blank__
htraenurekaos        ;;   __blank__


After

MODULE_NAME_HERE    ;; RECCO_VERSION_HERE
contrib_module_001   ;;   7.x-1.6
foobar_module        ;;   7.x-2.2
htraenurekaos        ;;   7.x-3.6
Mr. H does not want to actually download or install the relevant modules, he only wants to get a list with the latest recommended D7.x version.


Well, at the very least, you can do:

drush @site.env up module_name --select for individual modules, you can also do:

drush @site.env pm-releases which has a load of options for output.

https://drushcommands.com/drush-8x/pm/pm-releases/

It has format options.