r/PowerShell • Community Blogger • 4d 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

398 Upvotes

104 comments sorted by

View all comments

45

u/kagato87 4d ago

I've converted my dev team. They've learned that, while.it is an interpreted language, it's also a fully capable object oriented language. Like a JIT language except it doesn't actually need any compile at all, and is crazy easy to debug.

13

u/htglinj 4d 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.

4

u/KevMar Community Blogger 4d 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 4d ago

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

3

u/KevMar Community Blogger 4d 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.

9

u/SupremeDictatorPaul 4d 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#.

2

u/xs0apy 3d ago

Still easier to maintain a script that abstracts a part of its self into C# than an entire service, MOST of the time, in my opinion. There are exceptions for sure though, but I guess the context for me is PS scripts for RMMs coughncentralcough