liveBook · Manning

Cmdlet

As explained in Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

A cmdlet is a specialized PowerShell command that performs a focused operation and is typically implemented as a .NET class.

A cmdlet is a native PowerShell command-line utility for performing a focused operation. Cmdlets exist inside PowerShell and are typically written in a .NET language. They belong to the broader category of commands, which also includes functions and external applications. section 3.1 section 4.4

Recognize cmdlets by their consistent naming and command syntax:

  • Use a standard verb, a dash, and a singular noun: Get-Process, Stop-Process, or Start-Job. section 4.4
  • Treat command as the general term; functions use PowerShell’s scripting language, while applications are external executables. section 3.1 section 4.4
  • Read parameters as part of the command’s full-form syntax; parameter names begin with a dash, and switch parameters need no value. section 4.3

Discover event-related cmdlets

Run Help *event* or Help *object* to search available help topics. A result such as Get-Event, Register-ObjectEvent, or Wait-Event identifies the item’s category as Cmdlet. Then run Help Register-ObjectEvent to study its usage. section 3.4

Help *event*
Help *object*

Search broadly with wildcard terms when you do not yet know a cmdlet’s name. section 3.4

How Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS covers it

How deep it goes
Explains definitions, categories, naming, parameters, and discovery, but stops short of implementation details.
Examples
Demonstrates Get-Command, Get-Process, Start-Job, Set-AzVM, and wildcard help searches.
What it assumes
Assumes only basic PowerShell command use and teaches command categories, naming, syntax, and help discovery from the beginning.
What you can do after
Apply standard naming patterns and wildcard help searches to find, identify, and begin using unfamiliar cmdlets.
How it connects
Connects cmdlets with commands, functions, applications, parameters, modules, and the help system.

Also explained in

Compare how 2 books explain cmdlet →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS. The section links point to the parts of the book it draws on.