Check out run program in the scripting index (Coping JSL Example here)
RP = Run Program(
Executable( "PING.EXE"/*path probably not needed*/ ),
Options( {"-n 5", "localhost"} ),
ReadFunction( Function( {this}, Write( this << read ) ) )
);
Some things might need you to actually call cmd but most shouldn't. I'm just trying to write all outputs to my userprofile
Names default to here(1);
RP = Run Program(
Executable( "cmd"),
Options( {"\[/c "ping localhost > C:\users\my_user\ping_results.log 2>&1]\"} ),
ReadFunction( Function( {this}, Write( this << read ) ) )
);
I use this discovery presentation all the time when working with run program.