Getting the content of an object is usually done with the Get-Content cmdlet. For example, getting the content of the Windows hosts file:
Did you know that Get-Content has a shortcut syntax to do the same?
Here’s how you can get a definition of a function:
Note: Keep in mind that the value in the braces must be a literal, no variables are allowed. This will not work: