Check pre-conditions for Hyper-V

Check if Hyper-V PowerShell modules are available. Return the VM state.