powershell gets the definition of a function. I used this to get the definition of a custom function inside and custom module
(Get-Command prompt).definition