Schedule VM Shutdown and Startup

Hello,
Could someone has any example about How can I schedule a VM shutdown and Startup !?
What is the best way of to do it!?

Regards
Carlos