objdef obj-inst [file]
Displays obj-inst on the console where obj-inst is a new-object constructor
The file parameter causes the text to be written to the specified file
Due to the vagueness of Powershell parameter parsing the new-object constructor needs to be wrapped in parenthesis when the file parameter is
included as the second example shows. DirInfo: objdef new-object system.io.directoryinfo('x')
FileInfo: objdef (new-object system.io.fileinfo('x')) c:\temp\dirinfo.txt
Copyright © 2018-2021, 2022, Rexcel System Inc.