在运行时编辑 PowerShell 脚本

Hop*_*ope 5 windows shell powershell

显然,在执行时编辑 Linux shell 脚本会导致未定义的行为

当您在执行 PowerShell 脚本时对其进行编辑时会发生什么情况?

Den*_*nis 1

PowerShell 从上到下解析所有内容一次,并且永远不会再返回。
一旦进入,就进入了:)
如果您需要将 PowerShell 模块重新加载到当前会话中,则必须使用 -Force 标志。