I have been playing cscript recently and I have found it a better alternative to Jscript. With C# Script you have the power of C# Language with the scripting capability. Hence, you don’t have to compile your code when making modification to it.
You also have the option to create an executable out of the script.
Here is an example of accessing COM from C# Script. Notice the include tag on the first line
//css_prescript com(SYSINFO.SysInfo.1, SisInfoLib);
static public void Main(string args)
SysInfoClass sysInfo = new SysInfoClass();
Console.WriteLine(“Not using AC power”);
Console.WriteLine(“Using AC power”);
Console.WriteLine(“Unknown AC power status”);
if (sysInfo.BatteryLifePercent != 255)
Console.WriteLine(“Battery life ” + sysInfo.BatteryLifePercent + “%”);
Console.WriteLine(“Battery charge status not known”);