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

325 Upvotes

88 comments sorted by

View all comments

28

u/kagato87 1d 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.

14

u/KevMar Community Blogger 1d ago

What I loved was how self discoverable everything was. I could make an API call, get the object, then trivially look at what it contained to know what I needed to do next.

2

u/kagato87 1d ago edited 1d ago

$response.result[0] | select * | ft

Don't always need the pipes, but yea that's da bomb integrating to an api. Sure, the dto is available, but just looking at the data is easier.

Even working in a C# project I'll crack out a powershell harness to find the dot notation to the data I'm interested in.

10

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

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

1

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

7

u/SupremeDictatorPaul 1d 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/xs0apy 16h 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