Generate Function param + ValidateSet dynamically

It was annoying to always update the ValidateSet attribute each
time I added a new Function to support.  Dynamically generating
the parameter with ValidateSet works nicely.
Add post-mortem debugging aid