Does any one know if there is a way to script out SQL Server backup in to a batch file, so that it could be executed from a command line?
You can use sqlcmd to run a backup, or any other T-SQL script. You can find the detailed instructions and examples on various useful sqlcmd switches in this article: Working with the SQL Server command line (sqlcmd)