Clean up/refactor the batch scripts used for building on Windows.
This is mostly a backport of issue #21907, but also includes a few extras necessary to make the bulidbot scripts as thin as possible.
Z
Zachary Ware committed
6250df81bfbe567bb12c6dc29af149c62f35afa6
Parent: 17d5f47