They shouldn't have "invented" a new language, they should have just embraced Python and started providing Microsoft supported modules for managing their products. That was a big miss.
Check out marcel: https://marceltheshell.org. This is a bash-like shell that pipes Python values, and you can write Python functions on the command line. It also has a Python API (a marcel module) that allows you to shell out far more cleanly than with Popen and friends.
There's also xonsh[1], which is like a Python REPL and bash rolled into one.