Python is an immensely popular scripting language in WWW publishing and UNIX/LINUX administration. It also plays an important role in automation, especially when working with embedded systems. And it's a super beneficial language for scientists and mathematicians, with countless STEM functions, and more surfacing daily. However, when it comes to administering a Windows enterprise, or even a handful of networked Windows machines, PowerShell is the hero. PowerShell's native relationship with the Windows .NET platform (it's built on it), and its compatibility with COM, for legacy platform compatibility make it the preferred language among Windows administrative scripters.
But why sacrifice one for the other? Many freely available scripting environments (Visual Studio Code, for example) support multiple languages, including both PowerShell and Python.