First, mount the vhd using
Mount-WindowsImage -ImagePath C:\VHDs\BigHomies.vhdx -Path C:\VHDMount -Index 1
Capture WIM file
New-WindowsImage -CapturePath C:\VHDMount -Name Win10Image -ImagePath C:\CapturedWIMs\Win10.wim -Description "Yet another Windows 10 Image" -Verify`
And let it do it’s thing. When you are done you can unmount the vhd and discard any changes using:
Dismount-WindowsImage -Path C:\VHDMount -Discard