JScript
is actually the superset of Javascript
(it's 1.8.1 version - so some newer features are not available ), and they can be embedded into a batch
script for extending batch
script's functions. Usually, techniques of embedding are using the JScript directives (not part of the official Javascript standard) in order to separate the batch and JScript code. JScript allows you to work with Com/ActiveX objects, as well as with WMI objects in addition to the standard Javascript.