title: Access the powershell console (package manager console) of visual studio programmatically in an extension
body: <p>I am trying to develop a visual studio extension to automate parts of our entity framework migration process.  I checked to add migration programmatically but after looking at entity framework source, a lot is done in powershell scripts, so I would like to get a hook on the package manager console (nuget) and send a command there and read the result from the console if possible.</p>
  
  <p>How do I access the package manager console programmatically in a visual studio extension?</p>
  
  <p>For example I would like to send the following command to the package manager console.</p>
  
  <pre><code>add-migration migration01
  </code></pre>