Post registration hook is not getting called for users registered through a custom database script

Initial issue - Post registration hook is not getting called from users registered through custom database script