3 ms·
I'm not sure how they do it and I've only used the basic features of powershell. That said, commands in powershell are .NET classes that define a method Process
by jules 16y ago
I'm not sure how they do it and I've only used the basic features of powershell. That said, commands in powershell are .NET classes that define a method ProcessRecord. Inside this they can call WriteObject to write an object to the output stream. So it seems that they can just implement this without any parsing by passing objects around in the .NET runtime.