Restart of build VM discussed in this thread already implemented. If you need to restart VM, you can run the following in PowerShell: sleep 5; restart-computer -f; sleep 5. Sleep is need to ensure all traces from build VM reached central servers (and AppVeyor Web UI)
However I am not sure that it is needed. You can install it with chocolatey package at install stage.