title: How to pass a variable having a dollar sign to another variable in PowerShell?
body: <p>I am using an On-Prem Server to run VSTS Build/Releases.
  Currently, I am trying to pass a variable from VSTS: <code>$(password)</code> to my script.
  Suppose the value of this variable <code>$(password)</code> is  'stringwith$sign'`</p>
  <p>This variable <code>$(password)</code> needs to be injected into a string in my script:</p>
  <pre><code>$string = &quot;I need to inject my password string from VSTS here &quot;$(password)&quot;&quot;
  </code></pre>
  <p>The String should look like this:</p>
  <pre><code>$string = I need to inject my password string from VSTS here &quot;stringwith$sign&quot;
  </code></pre>
  <p>How do I achieve this? The build/release will fail if I simply add it as $(password) since it thinks <code>$sign</code> in <code>&quot;stringwith$sign&quot;</code> is a variable. I cannot even use <code>''</code> quotes since my variable <code>$(password)</code> needs to be inserted in <code>$string</code>.</p>