Actually, as you know, this is the way to do the script manually:
http://msdn.microsoft.com/en-us/library/ms188664.aspxWithin SQL, it is not possible to automatically run scripts. You would need to alter this in the software or code that is organising the database. I.e. cron jobs on the server or programming to run an SQL command each night to copy the database over to the live version without downtime.
Hope this helps.