I'm not to sure this is possible, but I would like to try it out.
This is the basics of what I am trying to do:
function somefunction () {
$ListOfItems = (get-childitem c:\).name
param (
[validateset($ListOfItems)][string]$Moo
)
}
I don't know if a variable can be used in validateset or not. It doesn't look so. If it can be, how would I go about doing this?