title: Passing Python Variables to Powershell Script
body: <p>I'm looking to pass variables from a Python script into variables of a Powershell script without using arguments.</p>
  <p><strong>var_pass_test.py</strong></p>
  <pre><code>import subprocess, sys
  
  setup_script = 'C:\\Users\\user\\Desktop\\Code\\Creation\\var_pass_test.ps1'
  
  test1 = &quot;Hello&quot;
  
  p = subprocess.run([&quot;powershell.exe&quot;, 
            setup_script], test1,
            stdout=sys.stdout)
  </code></pre>
  <p><strong>var_pass_test.ps1</strong></p>
  <pre><code>Write-Host $test1
  </code></pre>
  <p>How would one go about doing this such that the Powershell script receives the value of <code>test1</code> from the Python script?  Is this doable with the <code>subprocess</code> library?</p>