Scanning – From the Linux shell, how do you batch out dust from images with the help of dust scanning?

I have a lot of scans done with the same scanner. After noticing that there were some traces of dust on the images, I scanned the dust in the hope of removing the dust from the images, but I could not understand it. Is there a way to use ImageMagick (or a similar script utility that runs under Linux) to use dust analysis to magically remove dust from the rest of the images?