Short answer: it calls the method .Format() with the parameter 0 on the Extensions property of a certificate object.
How can you figure that out by yourself? …
Running …
Get-ChildItem 'Cert:\LocalMachine\My'
… outputs some objects of a certain type. They have some properties and some methods. To inspect it and display these methods and properties you can use Get-Member. And because one object is enough we use the first object the cmdlet returns for the further steps here.
yeah i did all that but still couldnt exactly figure out why when i goto .extensions i see bunch of stuff
when i use .format(0) i see stuff that i dont even see in .extensions
Of course. It’s like a closet with drawers with boxes in it. When you open the closet you can see the drawers but not the boxes. You have to open the drawers to access the boxes. And the boxes to access their content.