Can't use secret varibale what do I do wrong?

Right, what I am saying is that 0.9.1 is not supported in PowerShell Universal. You must use the embedded module (0.2.1-alpha). See here for more information: Implementing SecretManager in UniversalAutomation 1.5.3 - #4 by adam