#1. Run the script in Powershell. If it does not run see Get-ExecutionPolicy. If restricted. Open Powershell as administrator and Set-ExecutionPolicy RemoteSigned. #2. This use directly inkscape.exe (and not the home made "inkscapec.exe" blob see convertsvg2pdf). $Var = @(Get-ChildItem | Where-Object{$_.extension -eq ".svg"} | foreach-object -process{ $_.FullName}); foreach($pth in $Var) { $out= $pth.Split(".")[0] +".png"; & 'C:\Program Files\Inkscape\inkscape.exe' -e $out $pth; }