bash script to interact with hp-scan command (part of hplip packages)