Update Table with Set-UDElement

You need to pass the attributes as a hashtable…Look how I am using it in this post:-