Unable to use Secret Variables

Unable to use Secret Variables in my scripts, getting this:

[error] Cannot find path ‘C:\ProgramData\UniversalAutomation\Repository\System.Management.Automation.PSCredential’ because it does not exist.
[error] Cannot find path ‘C:\ProgramData\UniversalAutomation\Repository\System.Management.Automation.PSCredential’ because it does not exist.

Any idea?

Product: PowerShell Universal
Version: 3.2.8

@adam to the rescue:

Instead of using:
(Get-ChildItem $Secret:MySecret).UserName
(Get-ChildItem $Secret:MySecret).Password

Go straight to:
$Secret:MySecret.UserName
$Secret:MySecret.Password