Add action to custom Function

You can simpy call the action yourself:

do_action( 'bp_before_account_details_fields' );

See https://codex.wordpress.org/Function_Reference/do_action