How can I extract a custom object from a long PS1 file without executing the whole script?
I'm working with a large PS1 file that contains a complex custom object, along with various functions and other code. Since I don't control the contents of the…