Create a template with a single ((link_to_file))
placeholder in Notify, and an API key. Then call the script with the filename to attach, the API key, and the template ID as environment variables, and a list of email addresses on standard in.
export API_KEY="redacted"
export TEMPLATE_ID="redacted"
export FILENAME_TO_UPLOAD="whatever.docx"
cat list-of-email-addresses | ./email-with-notify.rb