1 2 3 4 5 6 7 8 9 10 11 12 13
function Verb-Noun { <# .SYNOPSIS Tells you what it does .DESCRIPTION Tells you what it does with more detail. #> param ([string]$Name, [string]$Extension = "txt", [string]$foo="bar") $name = $name + "." + $extension $name }