@Sandy:
IIS is Internet Information Server, web server that is built into Windows XP. I should have mentioned, the sample script works fine off the command line. It also works fine when executed through any other web server. It's only when ran through IIS that it doesn't work properly. Mickysoft is doing something that disables CLI execution.