r/PowerShell • Community Blogger • 14h ago

News Why developers hate PowerShell

https://powershellexplained.com/2026-11-24-why-developers-hate-PowerShell/?utm_medium=post&utm_content=rpowershell&utm_source=reddit

This is a post that I have been thinking about writing for a very long time now. I find that developers struggle with PowerShell in a very different way that the sysadmin learning to automate. They bring intuitions and assumptions with them from other languages that catch them off guard when they skip over the documentation. In this article I try to capture some of those experiences and misunderstandings.

I cover a lot of ground in this one: running scripts, execution policy, aliases, objects and formatting, calling functions, output and return values, unrolling, operators, case sensitivity, type conversion, truthiness, strings, scope, automatic variables, paths, encoding, errors, native commands, and classes.

While this one is targeting Software Engineers more then Systems Engineers, I would still appreciate your feedback and stories of your own frustrating experiences.

Thank you, -Kevin

225 Upvotes

71 comments sorted by

View all comments

Show parent comment

5

u/htglinj 10h ago

Crazy easy to debug…compared to C# it is not.

PowerShell is an abstracted framework written in C#, anytime I need to do something really heavy I have to dump down to raw C#. Then I’m wondering why I’m abstracting to PowerShell.

3

u/SupremeDictatorPaul 6h ago

Because writing something in PowerShell takes a fraction of the time, and you can always view the source. Although, with AI now, the time savings aren’t really relevant. I do find it easier to read, but again, if you’re getting a summary from AI, then I’m not sure it’s going to matter much. Certainly for a lot of sysadmin stuff, a line or two of PowerShell can accomplish what is a whole project in C#.

1

u/KevMar Community Blogger 9h ago

I have caught myself using PowerShell for way more than I should at times. I'm much more willing to toss some C# into a dll for my PowerShell to leverage when it makes sense.

1

u/mkeytail 6h ago

Well you won't have to, as Single-File c# will be taking over ultimately, no ?

1

u/KevMar Community Blogger 5h ago

It's more use PowerShell for what it's best at and C# for what it's best at. If I'm not needing to call other PowerShell commands and it's mostly data processing or computer science stuff, then I do that part in C# and I'll lean on PowerShell for the shell experience that I want.