Using the call '&' operator with multiple parameters
问题 $sImageMagickHome = "C:\ImageMagick" $sImageMagickConv = "$sImageMagickHome\convert.exe" $sImageMagickArgs = @( '--%', '-background transparent', '-fill hsb(0,0,0)', '-font Arial', '-pointsize 18', '-size 18x26', '-gravity center') for ( $i = 0x01; $i -le 0x05; $i++ ) { $y = [char]$i & $sImageMagickConv $sImageMagickArgs label:$y $sCharsDir\$y.png #Write-Host $sImageMagickConv $sImageMagickArgs label:$y $sCharsDir\$y.png } Using Write-Host I can get an example to copy paste into the command