Install libpam-script by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-script
PAM module which allows executing a script
This module will allow you to execute scripts during authorization, password changes and sessions. This is very handy if your current security application has no PAM support but is accessible with perl or other scripts.