windows: Prefer Git Bash for external agent terminals (#40150)
Cole Miller
and
Max Brunsfeld
created
This applies the same change as #39466 to the terminal codepath for
external agents.
Release Notes:
- N/A
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>