title: Run powershell script from Ansible
body: <p>I have a powershell script which takes multiple user inputs for file ex.- "C:\temp\foo.ps1", then it runs. I am trying to integrate that script with Ansible using win_shell module. How can I pass the user inputs for the powershell script :-</p>
  
  <pre><code>  - name: windows test command
      win_shell: C:\temp\Snapshots.ps1
      args:
       stdin: C:\temp\test3.csv
  </code></pre>
  
  <p>Script(powershell):-</p>
  
  <pre><code>$CONumber = Read-Host "Enter the CO Number"
  </code></pre>
  
  <p>SO this takes input from user, how can I edit this using vars_prompt variable?</p>