我正在尝试运行一个脚本,该脚本将运行另一个 powershell 脚本。我需要第一个脚本在另一个脚本结束后才能继续。就像是:
启动 Copy.ps1 等到 Copy.ps1 完成 继续执行脚本
尝试使用 Invoke-Expression 但它没有等待参数。
powershell scripting
powershell ×1
scripting ×1