An ongoing accreted list of Powershell tips&tricks from multiple sources.

PowerShell tips for bash users -

xargs and for loop

cat dirs | %{mkdir $_}

There is no xargs command in PS, but you can use foreach loop and pass the piped variable $_ to the mkdir. Shorthand for foreach is %.


There is practically no way to write a script even as simple as this one without using objects.

Powershell 101 From a Linux Guy

Naming Convention

A decent naming convention to the cmdlets, which helps in guessing… Verb-SingularNoun

Meta Info & Help




# measure the time
measure-command { ls -Filter "*.exe" }

Use object in place



("hello world").Length


New-Alias -Name grep -Description grep Select-String

Comment: Github Issue