Project variables within Powershell in a step template

I have a project that uses a variable “ConnectionStringPassword” which is defined in a variable set.

I also have a step template used in the same project that has a post-deploy Powershell script.

I want to access the project’s defined value of “ConnectionStringPassword” inside the Powershell script.

Please confirm that I can reference the value as follows in Powershell:

 $password = $OctopusParameters["ConnectionStringPassword"]

Thanks in advance.

I tried it out and it worked! Closing discussion.