@Jacob-Evans
i have tried your idea and still not working.
i want to add it this way
New-UDInputField -Type ‘select’ -Name ‘Servers’ -Values “Select Server” , $servers
and when i do it this way i got all servers as one object.
Yeah, you changed what you are doing from what you posted before and changed from what I suggested, when you added “Select Server”, you told powershell to treat $servers as a string instead of an array.
before i add the select server , my servers names showed up correct but could not use any of them they just look like empty.
but if you want to add select server and have it work why needs to be done here?
if i did it -values “select server”,“server1”,“server2” it works but does not work “select server”,"$servers" or
-values $servers or -values “$servers”