New-VM creates a Hyper-V virtual machine after the automation determines its host, storage path, virtual switch, generation, and virtual disk settings. section 10.6
Idempotent VM creation
A rerunnable script uses Get-VM to detect an existing machine, calls New-VM only when absent, and applies later settings to either newly created or existing VMs.
