get history of commands in powershell code example Example: powershell get all history (Get-PSReadlineOption).HistorySavePath