Allen,
Turns out that the problem is with VMware. I was running a XP Pro virtual machine on my Vista box, but the script wasn't running at all. After I logged into my laptop the script works fine.
Sorry for wasting yours time.