A work around for this could be creating an alias and using $submenu(), have the alias perform a loop listing each loaded/unloaded script.
alias modules {
var %i = 1
if ($1 == begin) { return - }
while (%i <= %number_of_loaded_files) {
if ($1 == %i) { return %name_of_file $+ : /command }
inc %i
}
if ($1 == end) { return - }
}
Note: this is an untested alias, I'm only using it as an example to better explain my suggestion.