PowerShell 5.1 drops a zero-length string when splatting to a native exe, so an empty $repoCommit shifted flag/value pairing and click saw the build command as an unexpected positional. Append --commit only when a commit is set.
PowerShell 5.1 drops a zero-length string when splatting to a native exe, so an empty $repoCommit shifted flag/value pairing and click saw the build command as an unexpected positional. Append --commit only when a commit is set.