title: How to set system variable value in Octopus Deploy from PowerShell
body: <p>I am trying to assign value to built-in release notes variable in "Run a Script" step.</p>
  
  <pre><code>$OctopusParameters["Octopus.Release.Notes"] = "Some release notes"
  </code></pre>
  
  <p>In the next step "Send an Email" I am using this variable in email body, but unfortunately it is empty.</p>
  
  <pre><code>&lt;p&gt;#{Octopus.Release.Notes}&lt;/p&gt;
  </code></pre>
  
  <p>Is it possible to set Octopus Deploy system variable value from PowerShell and use it in the next step?</p>
  
  <p>I am using Octopus Deploy 3.7.11.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have also tried the cmdlet <code>Set-OctopusVariable</code> and it did not work.</p>
  
  <pre><code>Set-OctopusVariable -name "Octopus.Release.Notes" -value "Something"
  </code></pre>