I have an array $computernames and need an enum [validComputernames]
The solution in the thread below is not working for me and seems outdated since PS5.0 added the enum Keyword.
https://powershell.org/forums/topic/create-enum-from-array/
Any ideas?