Updated generatePackageXmlAndBuildXml for Windows

Windows can execute the groovy as a executable so changed the build target to use the groovy executable and pass in the script as argument.