#TodayILearned that powershell logs all commands by default in

$(Get-PSReadLineOption).HistorySavePath

…mine is:

C:\Users\matty\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt

(via a @CBergmeister comment here:

www.hanselman.com/blog/F7Is…)