Things change sometimes. MacOS and linux could learn several things from windows, for example sting based shells feel as rickety as an old set of stairs after using microsoft’s object based shell.
I had to learn some powershell to deploy a windows application and was immediately impressed by how much better pipelines were with objects vs strings, session object persistence, being able to call C# if needed, and so on.
I reach for powershell when I need something more complicated than is practical for me to do in bash, but notso big or complicated that I would need to go to python. Saves me a lot of time and is pleasant to write.