Given these powershell functions where foo takes a scriptblock as parameter:
function bar($name)
{
"Hello World $name"
}
function foo([scriptblock]$fun={})
{
&$fun "Bart"
}
Is it possible to specify the function bar as default for $fun instead of {} in function foo?