Hi,
Please try below command:
New-VM -Name rr-rds2 -MemoryStartupBytes 45056MB -BootDevice NetworkAdapter -NewVHDPath D:\hyperv\rr-rds2\Virtual Machines\rr-rds2.vhdx -Path D:\hyperv\rr-rds2\Virtual Machines -NewVHDSizeBytes 250GB -Generation 2 -Switch VM's-RR
I think you need to replace "SwitchName" parameter with "Switch" parameter. Also, please ensure your switch name is correct. There should not be spacing character in the name.
If the problem persists, please take a screenshot of the command running result. Thanks.
Thanks,
If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.