Thanks for this! This will really be a great help to me, for one.
I'm having a problem with it though; it seemed to work fine running it as a script, but if I try to map it to the gCLI namespace with the "using" command, or importing it into a script that is, it crashes and burns. Since you...