I have a small powershell script that does some setup and then call ImageMagick to make a montage and the resize the result. Now, all of this works perfectly fine, but since it is working with somewhat large images, I like to monitor the output by specifying the -monitor flag for the ImageMagick command line. Now, this also works as far as generating the correct result is concerned, but PowerShell treats the output as an error, thus showing the text in read, and adding the error information header.
Is there a way of getting PowerShell to just display this program output as regular text?
I've omitted the rest of my script here, since this happen even if I run this single line in a PowerShell window:
mogrify -resize "7680x4320!" -monitor montage*.png
which outputs the following in red text
mogrify : load image[montage.png]: 0 of 4560, 00% complete
At line:1 char:1
+ mogrify -resize "7680x4320!" -monitor montage*.png
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (load image[mont...0, 00% complete:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
load image[montage.png]: 50 of 4560, 01% complete
load image[montage.png]: 100 of 4560, 02% complete
load image[montage.png]: 150 of 4560, 03% complete
load image[montage.png]: 200 of 4560, 04% complete
load image[montage.png]: 250 of 4560, 05% complete
load image[montage.png]: 300 of 4560, 06% complete
.... (more lines like this)
Is there a way to tell PowerShell that "Hey, these lines are just expected program output, not errors"?