我尝试使用Exec()预处理器函数运行 PowerShell 脚本,但我需要向它传递两个参数。我怎样才能做到这一点?以下代码段不起作用。
#define PSScript SourcePath + "\\UpdateJson.ps1"
#define ConfigPath SourcePath + "\\ClientConfig.json"
#expr Exec("PowerShell -NoProfile -ExecutionPolicy Bypass -File {#PSScript} {#ConfigPath} Str({#BuildNumber})")
谢谢!