function Add ($a, $b) { Write-Host ($a + $b) } Add 5 4
fun.ps1
function Add ($a, $b) { Write-Host ($a + $b) }
funcall.ps1
. ./fun.ps1 # . "./fun.ps1" # もしくはこちら Add 5 4