It is easy to schedule a task to run one time or recurrently.
From Start Menu, you can type "Task Scheduler" or "taskschd.msc" to invoke task scheduler dialog.
You can create a new task by clicking "Create Task" on the right side window under "Actions".
"Create Task" will invoke a dialog with 5 tabs - General, Triggers, Actions, Conditions, Settings.
The following is the screenshot for Trigger.
The following is the screenshot for Action that will restart your computer. You can select any other program in which you are interested in.
You can go through conditions and settings tab on your own.