Imagemagick command in command line and windows powershell
<p>I am trying to run an imagemagick command line in my windows powershell but it does not work, if I run it in my regular command line it does work.</p>

<p>The command looks like this: </p>

<p>(I do not need the linebreaks, I just put them so that the command is more readable)</p>

<pre><code>convert -bordercolor none -background none -gravity center ^
k1.jpg -border 5x5 ^
( k2.jpg k3.jpg k4.jpg -border 5x5 +append ) ^
( k5.jpg k6.jpg k1.jpg -border 5x5 +append ) ^
-append -border 5x5 -resize 720x480 output.png
</code></pre>

<p>I get following error if I run it in my powershell: ( I had to translate it into english)</p>

<blockquote>
  <p>k2.jpg : the wording "k2.jpg" was not detected as a name of a cmdlet,
  a function, a script file.</p>
</blockquote>

<p><strong>Edit:</strong></p>

<p>Actually I do not need the lines breaks, I just put them so that the code is more readable, if you have a suggestion without the line breakers it is fine aswell.</p>

<p>Edit:</p>

<p>I tried Matt's suggestion like this:</p>

<pre><code>convert --% -bordercolor none -background none -gravity center k1.jpg -border 5x5 (k2.jpg k3.jpg k4.jpg -border 5x5 +append) (k5.jpg k6.jpg k7.jpg -border 5x5 +append) -append -border 5x5 -resize 720x480 output.png
</code></pre>

<p>And I got following error/message:</p>

<blockquote>
  <p>convert.exe: unable to open image '(k2.jpg': No such file or directory
  @ error/blob.c/OpenBlob/2695. convert.exe: unrecognized option
  `+append)' @ error/convert.c/ConvertImageCommand/764.</p>
</blockquote>