Powershell Secure Strings and Sensitive Variables

I want to use a sensitive variable in a powershell script to connect to a service. Is this possible? or can the secure variables only be used in the Octopus UI Steps?

Hi Gerard,

Thanks for getting in touch! Yep you can use sensitive variables in a PowerShell script just like you would a regular variable.