iCopy is a free Windows application that lets you combine your scanner and printer into a powerful copy machine. With a single click, you can directly print your copies or save them to image or PDF files.
iCopy can be run as a Windows application, but its functionality can entirely be controlled from the command line. See the documentation for details.