I made the following testprogram (called test.sb):
arg1=Program.GetArgument(1)
arg2=Program.GetArgument(2)
TextWindow.WriteLine(arg1+" "+arg2)
I ran the program, which makes an executable test.exe and when I ran the command "test one two" in the cmd window
in the directory where text.exe is located. I get a textwindow with the output "one two"
Try this procedure first and when it works try to get the batch file working.