The first step is to modify the .cmd file so that the proper SQL Server references the .sql file name.
The SQL Script can be anything. In this case, it is executing a stored procedure.
Once the changes have been made, test the process by running the command file from the DOS prompt. Verify the SQL script has properly executed. A DOS and SQL log file are created using the values in the .cmd file. Review these files for any errors.