I am trying to unload a project using $dte powershell command. I am running this command from Package Manager Console in Visual Studio. I know I can unload the project using
$dte.ExecuteCommand("Project.UnloadProject")
But before this, I would have to select the project and I am unable to do the same. Any ideas?