for W9X/ME and I don't think it would be any different for XP:
Create a new shortcut on the desktop with the following information:
For a shortcut to SHUT DOWN Windows:
C:\WINDOWS\RUNDLL32.EXE user,exitwindows
However, the path would now be
C:\Windows\System32\Rundll32.exe user,exit windows
Now run Task Scheduler and point it to that shortcut for a specific time....
TONI
Is there a program I can download that lets me schedule my system for a shutdown at a certain time?
or is there a program in WindowsXP that does this, that I dont know about?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic