I am sure these has been asked before but cannot find clear instruction how to create a batch file lets call it \"Update Database\" this batch file should
Execute s
This answer definitely works for your purposes:
sqlcmd -S localhost -U fdmsusr -P fdmsamho -i "E:\brantst\BranchAtt.sql" -o "E:\brantst\branchlog.txt"