一時フォルダにあるファイルの中で更新日時が一番新しいファイルを得るワンライナー

((Get-ChildItem (Get-ChildItem env:TEMP).Value | where {$_ -is [System.IO.FileInfo]} | sort LastWriteTime -Desc)[0]).FullName

ファイルのみの抽出のところで where { $_.Attributes -eq 'Archive' } とすると、Archive だけのファイルだけになって [Archive, NotContentIndexed] のファイルとかが対象外になるので、型で抽出する。

ま、同じことやるのならバッチのほうが明らかに早いけどね。http://hail2u.net/blog/software/avoid-firefox-bug-in-view_source-external-editor.html