• dan@upvote.au
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    1 year ago

    And WHY? would you use Powershell in a Linux distro?

    This is definitely a hot take, but PowerShell is a better scripting environment than shell scripts. Much more powerful since you have the entire .NET framework available, and it’s a more modern design (e.g. you pipe objects rather than plain strings, so extracting particular fields from some data is straightforward, and you rarely need to use grep or cut). Since it’s available out-of-the-box on Windows, it’s not a bad environment for cross-platform scripts.