script normally you need a server in order to see the output in a browser. You can also run it from command line producing the html output: see
for more on this subject.
Running CGIs on a windows web server (aka IIS) is normally a font of big headaches, and may lead to different use in respect of the original server. The best will be recreate the same environment of the original server using a virtual machine.
is an almost dead tecnology and if you are not a programmer maybe not worth to learn it.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.