title: Executing C# executable that uses Powershell execution is erroring out
body: <p>I have c# web service invoking an external executable with parameters to run Powershell using runspace.</p>
  
  <p>I have 64 bit machine and configured IIS to run 64 bit executable.</p>
  
  <p>When Executable is called it does not find PowerShell commands, it appears that if I am running in 32 bit mode, appropriate 64 bit PowerShell cmdlets will not be found.</p>
  
  <p>I am looking for some help on how to configure this.</p>
  
  <ol>
  <li>I have compiled executable in 64 bit mode using Visual Studio.</li>
  <li>I have configured IIS to run in 64 bit mode</li>
  <li>I have Windows 2008 R2</li>
  </ol>
  
  <p>This cmdlets are regarding Office365 user creation</p>
  
  <p>When I execute New-MsolUse, it says you must execute Connect-MsolUser  my PowerShell does have appropriate connect call before New-MsolUser command.</p>
  
  <p>Any help?</p>