title: How to pass arguments to Unix-like commands (via MinGW) in PowerShell
body: <p>I'm using MinGW on my Windows machine, and when I use it with the <code>command-prompt</code>, things work as expected:</p>
  
  <ul>
  <li><code>ls</code> lists the visible files</li>
  <li><code>ls -a</code> lists all files, etc</li>
  </ul>
  
  <p>But, when I fire up Powershell, it keeps throwing errors when I pass arguments to my commands as so:</p>
  
  <pre><code>D:\&gt;ls -al .
  
  Get-ChildItem : A parameter cannot be found that matches parameter name 'al'.
  At line:1 char:4
  + ls -al .
  +    ~~~
    + CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Powershell.Commands.GetChildItemCommand
  </code></pre>
  
  <p>What can I do to use all my MinGW/msys commands properly via Powershell?</p>