Script to generate restore scripts

Paul Brewer created a script to generate the T-SQL commands to restore one or more databases from their latest backups (https://paulbrewer.wordpress.com/sp_restoregene/)

Is there anything like that to generate the restore scripts using LiteSpeed's extended stored procedures? I know it can be done through the GUI but I've only found a way to do it one database at a time, and I need a solution to generate the scripts for all the databases in an instance, programmatically.