Getting Attributes

Product: PowerShell Universal
Version: 1.5.15

I know that not all the controls will return data when using Get-UDElement, if I want to see the attributes of an element how else can I get them?

For example I can disable a button fine with this:
Set-UDElement -Id 'btnApplyAll' -Attributes @{disabled = $true}

But this same cannot enable it:
Set-UDElement -Id 'btnApplyAll' -Attributes @{disabled = $false}

Without knowing that properties to set it’s pretty hard to blidndy set random states and watch for a change