title: Bash - How to pass arguments to a script that is read via standard input
body: <p>I am trying execute a script from standard input and also pass arguments to it. Is there a way to do it?</p>
  
  <p>Let's say that I have the following:</p>
  
  <pre><code>cat script.sh | bash
  </code></pre>
  
  <p>How would I pass the arguments to the script?</p>
  
  <p>I do not want to do this:</p>
  
  <pre><code>bash script.sh arguments
  </code></pre>
  
  <p>Nor this:</p>
  
  <pre><code>./script.sh arguments
  </code></pre>