WScript.Name (Property)

A human readable name for the script.

Availability:

JScript - 3.0
Property/method value type:String primitive
JavaScript syntax:WSHmyName = WScript.Name

Computers are happy to use arcane names for scripts but WSH provides a way to give your script a human-friendly name. This property returns such a value.