I don't know... but you can try this:
code:
var Executable = "Dir C:\\*.*";
var OutputFile = "C:\\Dump.txt";
new ActiveXObject("Wscript.Shell").Run("Cmd /c "+ Executable+" > " + OutputFile);
var Output = new ActiveXObject("Scripting.FileSystemObject").OpenTextFile(OutputFile).ReadAll();
Debug.Trace( Output ) ;
new ActiveXObject("Scripting.FileSystemObject").DeleteFile(OutputFile);
I did not tested it... But.. it should work...