you can backup your database with two files like this
backup.bat
sqlcmd -i backup.sql
backup.sql
backup database TeamCity to disk = 'c:\backups\MyBackup.bak
Just put both files into the same folder and exeute the batch file via Windows Task Scheduler