Opening a filesystem object properties window from powershell?

Is it possible to open the properties dialog of a file or folder from powershell?

And if so, how would I do it?


$o = new-object -com Shell.Application
$folder = $o.NameSpace("C:\path\to\file")
$file = $folder.ParseName("filename.txt")

# Folder:
$folder.Self.InvokeVerb("Properties")

# File:
$file.InvokeVerb("Properties")

Further reading