I have seen many people wondering how to pass command-line arguments to JScript...Here is the code snippet on how to do this... The following code reads the command line arguments and prints them. Compile the following code using jsc.exe (Command: jsc.exe commandline.js)
// Commandline.js
// 
import System;

// This function reads the commandline arguments and prints them
function PrintCommandLineArguments() {
    var args:String[] = System.Environment.GetCommandLineArgs();
    var iValue:int;

    // Print the command-line arguments    
    for (iValue in args)
        Console.WriteLine(args[iValue]);
}

PrintCommandLineArguments();
//