If you look in the c:\Program Files\Solid Edge [Version]\Custom\Batch folder there is a VB.net project in there that you could adapt to do everything you need.
As it happens I'm doing the same thing at work, but unfortunately haven't got time to finish it at the moment - maybe in a few weeks...