Gci instead of Get-ChildItem and ? instead of ForEach-Object would cut down on verbosity there.
Not a member of The Register? Create a new account here.
Remember me on this computer? Post anonymously?