Here's an example of ValidateSet
where the values are strings which contain spaces:
function Test-ValidateSet
{
param ([ValidateSet("abc def", "ghi jkl")][String]$Val)
$Val
}
The IntelliSense works, however the completed value isn't quoted.
Is there a way to get the completed values to be quoted?