I want to modify the code used in compare-object (so that I use the same algorithm for comparison, but modify output and possibly add some more to it). Is there any way to view the code that is used for this, or would I just have to guess? This could be useful incase I want to modify other cmdlets in the future.
You need to use an application like dotpeek to reflect the code of
Microsoft.PowerShell.Commands.Utility.dll