I don't know if I can attach the script, I would have to run it by mgmt.
One thing I was thinking of that isn't reflected in the log file is that there is a space in my datastore name. I set it to datastore1 in the file but it's really /vmfs/volumes/my datastore/Patches. I was thinking of playing around with quotes in the depot name tomorrow.