Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-create-new-Virtual-0e972c8d.
The sample code demonstrates how to create new Virtual Desktop in Windows 10 using PowerShell.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery