right-click actions in Types pane on Windows should be applied to the right-clicked item, instead of the selected one.
#!/bin/bash
INKSCAPE=inkscape
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'`
do
echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
rm -f $i.png
"$INKSCAPE" icons.svg -z -e $i.png -i $i
done