The VMConfiguration parameter was passed for creation of the virtual machine (%VMName;) along with some inappropriate cmdlets ...