VMware Hyper-V conversion

Hi there!

I am trying to work out an automated conversion mechanism migrating VMware to Hyper-V Vhd. I have been told that the best way to do so would be writing a PowerShell script and using Microsoft's MvmcCmdlet collection. However, my experience with PowerShell is fairly limited. This is what I have come up with so far:

e"C:\Users\XXXX\Desktop\MvmcCmdlet.psd1"ConvertTo-VirtualHardDisk:-SourceLiteralPath"D:\XXXX\base.vmdk"-DestinationLiteralPath"D:\XXXX"-VhdTypeFixedHardDisk-VhdFormatVhd 

The error report says

 "No positional parameters found"

. What am I doing wrong?

Appreciate your feedback!

Wouldn't positional parameters be separated by spaces from the command itself?

You are right. Here is the original format:

Import-Module "C:\Users\XXX\Desktop\MvmcCmdlet.psd1"
ConvertTo-VirtualHardDisk: -SourceLiteralPath "D:\XXX\base.vmdk" -DestinationLiteralPath "D:\XXX" -VhdType FixedHardDisk -VhdFormat Vhd

I tried it with and without spaces, doesn't make a difference though. Any other ideas?