DEV Community

torchiachristian
torchiachristian

Posted on

Building a Searchable PowerShell Cmdlet Reference with CSV

I needed a structured, filterable list of PowerShell cmdlets for a documentation tool. Instead of scraping each time, I built a maintained CSV dataset.
A starter sample (sample.csv with 20 entries) is available in this GitHub repository:
[https://github.com/torchiachristian/powershell-cmdlet-dataset]

The CSV includes these columns:

  • Command: The cmdlet name.
  • Module: Its source module.
  • Category: A usage category (e.g., Process, File).
  • Description: A brief summary.

Example usage:


powershell
# Find all process-related cmdlets
$ref = Import-Csv -Path "./ps_cmdlet_ref.csv"
$ref | Where-Object { $_.Category -eq 'Process' } | Format-Table Command, Module

# List all modules in the dataset
$ref | Select-Object Module -Unique



Enter fullscreen mode Exit fullscreen mode

Top comments (0)