如何开始我刚定义的函数的作业?
function FOO { write-host "HEY" } Start-Job -ScriptBlock { FOO } |
Receive-Job
Receive-Job: The term 'FOO' is not recognized as the name of cmdlet,
function ,script file or operable program.
Run Code Online (Sandbox Code Playgroud)
我该怎么办?谢谢.