You can set it up directly in OS X in System Preferences:
1: Go to Energy Saver
2: Click on "Schedule..."
3: Set the times for Wake Up, Shut Down, Restart, or Sleep. For example, you can even set it up to shut down and restart a particular day of the week, or to shut down and restart only on weekends.