Thanks, this script worked very well.
After retrieving the ${id} value, curl or wget can be used to retrieve these eight files into their own sub-folder:
GOCOMPONENT.png
GOFUNCTION.png
GOPROCESS.png
GOResults.html
GOResultsCOMPONENT.html
GOResultsFUNCTION.html
GOResultsPROCESS.html
top.html
These results can be loaded by a local web-browser by loading GOResults.html, and they can be kept indefinitely.
Here are my modifications to this script, which put the GO analysis results in the folder specified with --outputDir: