Java Script Integration via Oxid Module


I am developing an Oxid module for a project and I need a little help. So the thing is, whenever the module I am developing, is activated I want to run a script on each front-end page of the Oxid shop. But I am unable to understand that how would I be able to append the script to maybe in the head section of the DOM whenever my plugin activates. What is the best practice to use own custom scripts for a module?

the regular way to go would be extending a template block and adding your scripts with [{oxscript }]

thanks for the help!