Capturing the VM using PowerShell