You can just use the variable directly. Get-UAVariable is return the reference to the variable. For secrets, you won’t be able to access the Value through the Management API (which is what Get-UAVariable uses).
Interesting. I would have never guessed that would work. So all scripts have access to the $VariablesName Is this in the documentation somewhere? I saw this new-uavariable but overlooked that comment.
Aug 11, 2021 9:45 AM [warning] Failed to verify module and server version. Call failed. The SSL connection could not be established, see inner exception. GET https://localhost:443/api/v1/version
Aug 11, 2021 9:45 AM Test
Aug 11, 2021 9:45 AM Test2