I was looking for a solution for many days. I searched around the web and tried everything, but nothing worked for me. With a slight difference from @pedro-ferreira answer, here is my solution.
Access Git Bash with administrator permission. It can be any terminal you are using for development. Make sure Git is installed and you are using it with administrator permission. I am using Laragon (Local Development Environment)
Navigate to the installation folder of Drupal and type the following
command to install drush: composer require drush/drush:12.*
Please Note! Most of the guides/solultions out there will tell you to install drush globally, but it is not required and it does not work. Latest version of drush as the time of writing is 13, but you should use version 12.
path_of_project/vendor/bin/drush
.For example, here is my path. "ugintl" is the drupal project name. C:\laragon\www\ugintl\vendor\bin\drush
./vendor/bin/drush
or php vendor/bin/drush
. For me, the later worked.