You should be able to use /console/inspect with as-value in some kind of a loop structure to query all commands and info. If you do create a script to do this, please post it here.
Amm0 posted about how /console/inspect works here: http://forum.mikrotik.com/t/new-command-in-routeros-7/169237/29