It helps to understand SQLCMD along with the above. You can view some old webcasts free from the links below (the first one, by Michiel Wories, was far better IMO).
Armed with the above, you can create jobs that run in the Windows Task scheduler to automatically run a backup and do other maintenance routines without purchasing 3rd party software. I've done it and it works.