Not a powershell expert, but execute each one of these as a separate command in a PS terminal and it works
$e = .\bw list items
$f = $e | ConvertFrom-Json
$f | Sort-Object -Property RevisionDate -Descending | Select-Object -Property name, revisionDate, passwordhistory
I added in passwordHistory so that I could see ones that I’ve recently updated.