Well, first you would want a command file and then a .bat file to call the command file. (does that sound correct?)

so, your command file will have lines SOMETHING like this:
"svrmgrl
connect internal
shutdown immediate
(maybe a cold backup after that?!)
startup
exit
"

you could even spool to a LOG so you see what it's doing.
then, your .bat file would look something like this:
"c:\winnt\system32\cmd.exe
d:
cd

"

Of course, on NT it would be simpler to create a shortcut for the command (.cmd) file and then use NT-Scheduler or something to run it whenever you want ...

uh, anyone care to edit anything I stated? I was only giving a rough example.

- Magnus