If you would like to add scripts between <head></head> tag then you have to use wp_head() function.for example
Add the following code to your plugin
// Add scripts to wp_head()
function child_theme_head_script() {
// Your code here
}
add_action( 'wp_head', 'child_theme_head_script' );
That’s it.Code added to wp_head() will be run just before the closing </head> tag.
Have any doubt, then comment here!