A few (NON-VIBE-CODED! and previously tested) PowerShell (and cmd) one-liners and scripts
Convert-VMGeneration.ps1 (being from the vendor) comes with Microsoft Limited Public License, MS-LPL (!!!)
(Just remember to set the execution policy to anything else than "Restricted", e.g. by using something more permissive: Set-ExecutionPolicy RemoteSigned or Set-ExecutionPolicy AllSigned)