I am using a theme (child theme) in WordPress but I needed additional customization and made a custom page template. This custom page template has a very different design to the original theme. It works but JQuery and JavaScript would not register on the custom template. They would register on the child theme but not on the custom page template. I eventually got Javascript/JQuery to work on the custom template when I added <?php wp_head(); ?> to the head tag but that pulled code/design from the child theme into my custom page and ruined it. So I got rid of the enqueuing system and just embedded all the Javascript/JQuery directly into the custom page template.
My question is, do I have to follow the recommended enqueue system because directly embedding was incredibly simple and worked wonderfully?
The section of my head tag with the script references in the custom template is as follows:
<head>
<script src= 'https://abbasbooks.com.au/wp-content/themes/twentytwenty-child/js/simplifierappend.js?ver=6.0.2'></script>
<script src= 'https://abbasbooks.com.au/wp-content/themes/twentytwenty-child/js/label_autocomplete.js?ver=6.0.2'></script>
<script>var labelnames =<?php echo do_shortcode('[getlabelnames]');?></script>
</head>