If you do not have a UPS in your environment with a long runtime, you can setup the host to power down the VM's then set them to automatically start up when the host comes back online.
first of all you should ensure that both vm's have vmware tools. so that when esxi shuts down it will try to shut down the vms properly. Scheduled shutdown jobs are best ran from vcenter . if its not connected then maybe you can try a cron job.
from esxi host manage > system > autostart > select your vm's to autstart with esxi.
