I think it should be fairly easy to add these to one of the existing jscripts such as desktop.js but i'm not sure of the syntax to use or even what functions to call. Has anyone ever tried this successfully?
I know it is possible to add your own scripts but it's a long time since i tried. To be honest I've found it easier to work using USMT. It is more complicated but is far more comprehensive and probably the way to go in the future rather than with the built in PM especially if you want to go beyond the built-in functionality.