This article introduces the usage and examples of โhโ, which is equivalent to Linux Bashโs history command in PowerShell, the Windows command line language.
h | ForEach-Object {$_.CommandLine}
Example:
PS C:\pg> h | ForEach-Object {$_.CommandLine} | sls "note"
notepad