title: powershell script to convert svg images to png not working
body: <p>I have a file of svg images which I want to convert into png format. I used the following PowerShell script:</p>
  
  <pre><code>param(
  [string]$path = 'C:\motif3',
  [string]$exec = 'C:\Program Files\Inkscape\inkscape.exe')
  
  foreach ($filename in Get-ChildItem $path) {
      if ($filename.toString().EndsWith('.svg')) {        
  
      $targetName = $filename.BaseName + ".png";
  
      echo "Converting $filename ..."
  
      $command = "&amp; `"$exec`" -z -e `"$targetName`" -w 64 `"$filename`""; 
      Invoke-Expression $command;        
  }
  }
  </code></pre>
  
  <p>I ran the script successfully but it didn't convert the image.
  Can anyone tell me what is wrong?</p>