any idea what the heck Microsoft is doing with this brew install?
That's the standard way of installing Homebrew. Microsoft seems to have written an installer which relies on Homebrew being installed, so it makes sense to install it first.