Q. How can I get the content of a function in PowerShell?
A. If you want to view the code for a function you can view its content through the Function PSDrive. For example:
Note this example of mkdir shows how PowerShell emulates the cmd.exe mkdir which is really just New-Item with a type of Directory.