I wish I had the time to offer some assistance - however I'm very time poor at the minute.
There's fairly comprehensive documentation for GAS and I was able to script up a few things with no prior experience very quickly. Anyone who has experience scripting in say BASh, Powershell, vbscript, perl etc. should be able to help.