function fts($a,$b){
$sum=$a+$b
Write-Host $sum
}


function hs($fun,$a,$b){
$c = 32
#调用函数
Invoke-Command $fun -ArgumentList $a,$c


}

#函数hs调用fts函数 hs
${function:fts} 33 22

 

相关文章: