PowerShell: Find Command

By Xah Lee. Date: . Last updated: .

Show Documentation

help name
Show the doc or full name of a thing name. For example, type help dir and it'll show the doc for Get-ChildItem.

Find Command, List Commands

Get-Command name
Check if a command name is available. (Command means any of {Cmdlet, Alias, Function, filter, Script , app}.) Result includes any app in the Environment Variables $env:path
Get-Command *z*
List command names that contain z.
pwsh Get-Command 2021-01-16 hVdbf
list all commands that contains z in name.
Get-Command name -UseFuzzyMatching
List command names that match letters in name.
Get-Command name -all
Search all, including commands of the same type that have the same name. By default, Get-Command gets only the commands that run when you type the command name.
Get-Command name | Format-List
Make the full path of the command visible.
Get-Command name | select -Property Path
Show just full path of the command.
(select is alias of Select-Object)

PowerShell Intro

PowerShell

Practical How-To

list files

list dirs

on dir

on file

Windows config

misc


PowerShell in Depth

Programing PowerShell

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples