title: Powershell can not call ImageMagick commands - IM Montage
body: <p>I wrote a script in PowerShell and I am having various success calling Image Magick's montage.exe on different computers. The computer on which I wrote the script has no problem executing the 'montage' command, however on another computer with IM Installed the script errors out:</p>
  
  <pre><code>montage : The term 'montage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  At \\Server\Contact_Sheet_Local.ps1:51 char:9
  +         montage -verbose -label %t -pointsize 20 -background '#FFFFFF ...
  +         ~~~~~~~
  + CategoryInfo          : ObjectNotFound: (montage:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>I have tried using <code>montage.exe</code> and even tried the entire path <code>C:\Program Files\ImageMagick-7.0.3-Q16\montage.exe</code>. Additionally I tried setting the directory first:</p>
  
  <pre><code>Set-Location -Path 'C:\Program Files\ImageMagick-7.0.3-Q16'
  montage...
  </code></pre>
  
  <p>Each time on a particular computer this fails. I have tried with IM versions 7.0.3-Q16 and 6.9.1-6-Q8 both x64 as both computers are x64</p>
  
  <p>In the past, I have created scripts in .bat that use ImageMagick and I had to define the full path to the .exe as I mentioned above. But this doesn't seem to help in PowerShell.</p>
  
  <p>Does anyone have any advice or experience with this problem?</p>