How To Restart a Windows VM Code Snippet

To restart a Windows VM:

1$WAIT = 10
2shutdown /r /t $WAIT /c "Restart from Attune"
3Write-Host "Restarting in $WAIT seconds."