 <p>The error about the <code>/</code> operator usually indicates that PowerShell is not treating the command as a command line; prefix a <code>&amp;</code> to force it to do so. Note you'll also need to use <code>.\cspack</code> if <code>cspack</code> is in the current directory. PowerShell will also treat semicolons as statement terminators, so you'll want to surround each parameter with quotes to prevent that.</p> <pre><code>&amp; cspack "$a/ServiceDefinition.csdef" "/role:$b;$c" "/rolePropertiesFile:$a.$b;c$" "/sites:$a;$b;$c" "/out:$out" </code></pre>