The recommended way is to call your function inside the .js file you are enqueuing. Is there any reason you can't do that?
If you need access to dynamic data like WP options from within your script, use
$data = array('some_option' => get_option('an_option_from_my_theme'));
wp_localize_script('your_script_handle', 'my_theme_options', $data);
Following your last comment, you have two possibilities:
Add your code within the
wp_footer hook, after WP prints footer scripts:
"100" is the priority, the higher the number - the lower the execution priority of your action. Scripts are printed with the "20" priority