I did some research and discovered that WScript comes from something called Windows Scripting Host. I installed version 5.6 of WSH but it made no difference.
This is the example from the book...
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("c:\test.txt");
WScript.Echo(objFile.Name + "contains" + iCount + "line(s).");
Thanks in advance,