Use Exec-Process
The `&` operator in Powershell does not easily allow arguments to be conditionally emitted into a command. This is because instead of inserting string contents when using variable replacement it will insert a quoted string instead. Using `Exec-Process` instead as it does proper substitution
Showing
想要评论请 注册 或 登录