Set The Selected Index of A UDSelect

Perhaps there is a way to do this currently, but if so, I’ve not found it. What I’d like to do is programmatically set the currently selected index or value of a UDSelect. This would help greatly with setting up default values in fields which increases speed and usability for my users. Something like the below would be excellent.

New-UDSelect -Id 'testSelect' -Label 'Test Select' -Option {
    New-UDSelectOption -Name 'Option1' -Value 'option1'
    New-UDSelectOption -Name 'Option2' -Value 'option2'
} -SelectedIndex 1

# Or...

Set-UDElement -Id 'testSelect' -Attributes @{'selectedIndex' = 1}