In Programming in Scala, it gives a description on how to run Scala scripts from batch files (link).
For Windows
::#! @echo off call scala %0 %*
%0 indicates for the program name(the script file name maybe), %* indicates for the command line parameters list. %1 means the first parameter...