How to use drush locally with Acquia Dev Desktop2 and upgrade core
in Acquia Dev Desktop application,  when your project is selected there is a small
icon on the right-hand side. If you press it will open CMD and the correct path will be autoselected. Drush up will work there.

Good Luck