powershell

A task-based command-line shell and scripting language built on .NET.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "powershell" with this command: npx skills add g1joshi/agent-skills/g1joshi-agent-skills-powershell

PowerShell

A task-based command-line shell and scripting language built on .NET.

When to Use

  • Windows system administration

  • Azure management

  • Object-oriented scripting

  • Cross-platform automation (PowerShell Core)

Quick Start

$name = "World" Write-Host "Hello, $name!"

$processes = Get-Process | Where-Object { $_.CPU -gt 10 } foreach ($p in $processes) { Write-Output $p.Name }

Core Concepts

Cmdlets

Lightweight commands used in the PowerShell environment (Verb-Noun structure).

  • Get-Process

  • New-Item

  • Set-Location

Objects

PowerShell pipes Objects, not text.

Get-Service | Select-Object -Property Name, Status

Pipeline

Passes objects from one cmdlet to the next.

Best Practices

Do:

  • Use the Verb-Noun naming convention for functions

  • Use Try/Catch for error handling

  • Use [CmdletBinding()] for advanced functions

  • Output objects, not text (Write-Output over Write-Host )

Don't:

  • Parse text output like in Bash (use object properties)

  • Use aliases in scripts (readability)

References

  • Microsoft PowerShell Docs

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

template

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

mariadb

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

claude

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

javascript

No summary provided by upstream source.

Repository SourceNeeds Review