Just to close this out, I was able to do this entirely in VBScript.