кстати интересно что если jpg брать из
Код:

$imageFilePath = "$($env:USERPROFILE)/Pictures/butterfly.jpg"
то возникает еще
Код:

The process cannot access the
file 'C:\Users\Serguei\Pictures\butterfly.jpg' because it is being used by another process.
-