Powershell - Quickly display the code executed by a function

To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker, purchase my 3D plans, or make a donation or subscribe on Ko-Fi. Thank you!

Hello,

It can be interesting to display the code executed by a function, such as that provided natively by Powershell, for a need or simply out of curiosity

# Simply use the following syntax.
${function:New-TemporaryFile}
# Another example
${function:mkdir}
# List the functions
Get-Command -CommandType Function

Related links