title: PowerShell alias syntax for running a cmd.exe builtin function?
body: <p>As I have only recently switched to PowerShell from <code>cmd.exe</code>, I often find it convenient to do little things in a familiar way by calling <code>cmd</code> to do them.  For instance, to do a 'bare' file listing this works great:</p>
  
  <pre><code>PS&gt; cmd /c dir /b
  dir1
  dir2
  file1.txt
  </code></pre>
  
  <p>I'd like to make an alias for this but I can't figure out the right syntax.  So far I've tried:</p>
  
  <pre><code>PS&gt; Set-Alias dirb cmd /c dir /b        # error (alias not created)
  PS&gt; Set-Alias dirb "cmd /c dir /b"      # fail (alias doesn't work)
  PS&gt; Set-Alias dirb "cmd `"/c dir /b`""  # fail (alias doesn't work)
  </code></pre>
  
  <p>Any suggestions?  I'm looking for a general solution to calling builtin <code>cmd.exe</code> commands (such as <code>dir</code>).  I'd also like to know how to produce bare output the right way using PowerShell cmdlets, but that's a secondary concern at the moment.  This question is about the proper syntax for calling <code>cmd.exe</code> from an alias.</p>