PowerShell parameter sets allow you to control which parameters can be used together. If a parameter isn’t in the parameter set you’re trying to use you’ll get an error message.
PS> Get-VM -Name XYZ -id (New-Guid)
Get-VM : Parameter set cannot be… Read the full text.