cscript is not a valid Win32 application Windows Server 2003

It needs to look to the 32-bit version of cscript, rather than the 64 bit version, which is used in PATH.

Call C:\WINDOWS\system32\cscript.exe with the full path.