Just give it a shot, you could translate it line for line into Ruby, and use ImageMagick or something. Don't sell yourself short, it won't take as long as you think!
You could probably run it in a cygwin shell (after installing curl and ImageMagick).