title: Get working directory in binary powershell module
body: <p>I'm writing a binary powershell module in C# and I can't seem to find out to get the current working directory from within a command.</p>
  
  <p>My first thought was to do a simple <code>Directory.GetCurrentDirectory();</code> from the <code>System.IO</code> library but it only seems to give me the directory that powershell was launched in.</p>
  
  <p>How can I get the current directory within a binary powershell module during a command execution?</p>
  
  <p>Thanks</p>