I am trying to develop a visual studio extension to automate parts of an entity structure migration process. I checked to add the migration programmatically, but, looking at the source code of the entity, a lot has been 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.
How can I access the package manager console programmatically in a visual studio extension?
For example, I would like to send the following command to the package manager console.
add-migration migration01
source share