This tool is using Have I Been Pwned service for queries and it will help you to automate your scans during your pentest(s).
Usage of this tool is pretty simple.
Just give the path for your mail list and a name (to create the output file on the path that you are currently on) or full path for your output file & you are good to go!
# pwnCheck </path/mail_list> </path/output_file_name>
If you want to run this program from any path on the system, just add a link for it:
# ln -s /path/pwnCheck /usr/local/bin