Problems with variables in custom scripts

Hi,

I have some issues using the customs scripts as outlined here:
http://docs.octopusdeploy.com/display/OD/Custom+scripts

In particular where I specify the Powershell directly in the UI for PreDeploy/Deploy/PostDeploy. In this scenario I need to use variable substitution. I need to specify a string variable in Powershell - the name of a windows service I need to stop…

But nothing gets replaced. I have tried doing $srv1 = “$myService1”, $srv1 = “${myService1}”, $OctopusParameters[“myService1”], single ping, double ping but no go…cannot figure out what I’m doing wrong here. I have checked that the variable has the right scope…

Pointers?

Ignore please - it work now…don’t know why it didn’t before.
For reference, this works: “${myService1}”.