To run use
deno run --allow-read --allow-write mod.ts --dir "E:\path-to-images" --dryRun
or use velociraptor
vr start --dir "E:\path-to-images"
vr dryRun --dir "E:\path-to-images"
Installing velociraptor
deno install -qA -n vr https://deno.land/x/velociraptor@1.0.0-beta.18/cli.ts