Try creating the .BAT file with the following command:
for %%G in (*.sql) do sqlcmd /S servername /d databaseName -E -i"%%G"
pause
Note: Place the .BAT file in the directory from which you want the .SQL files to be executed, double click the .BAT file and you will be done!