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

I found a similar issue - but no comments were given before it was closed.

it does not look like the post user registration hook is firing for custom database registrations. Is that the intended behaviour? Or do I need to enable anything in the dashboard?

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