title: In Powershell, how to turn a string into a cmd?
body: <p>Let's say I want to get a specific <code>dir</code> contents:</p>
  <pre><code>$cmd = &quot;dir&quot;
  $args = &quot;.yarn*&quot;
  $output = &quot;$cmd $args&quot;
  
  echo $output
  </code></pre>
  <p>My output contains 2 string literals:</p>
  <pre><code>dir .yarn*
  </code></pre>
  <p>Expected (as a command on 1 line, opposed to a &quot;string&quot; on separate lines):</p>
  <pre><code>dir *yarn
  </code></pre>