Updated Toggle VM Script

The script disconnects from the management system before it enters the sleep and reconnects when it exits the sleep to prevent the script from timing out.