title: Executing multiple commands in a scriptblock and returning multiple responses
body: <p>I'd like to connect to a remote host, run 2 commands and return the seperate responses. However I'd like to do this as part of one scriptblock. I've done this before with one command but no joy with two. For example having</p>
  
  <pre><code>gc "C:\test.txt"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>get-webservice | ? {$_.Name -eq "foo"}
  </code></pre>
  
  <p>combined into a scriptblock and passing that scriptblock to <strong>Invoke-Command</strong> and extracting the individual responses from that call.</p>