I needed to restart the ESXi management services each night for a few weeks and didn’t fancy logging in myself. Turns out you can do this easily using Plink.
Grab a copy from here. Then simply setup a scheduled task to run Plink using the following options:
plink.exe [ESXi Hostname] -batch -ssh -l [username] -pw [password] "services.sh restart"
This will cause Plink to open an SSH session to the ESXi host and execute the services.sh restart command.