Concatenate 2 x JS Files to Inline Script

Yes I took a look at that previously.

But how do I get this content:
{{ $plugins := resources.Get “js/plugins.js” }}
{{ $global := resources.Get “js/global.js” }}
{{ $js := slice $plugins $global | resources.Concat “js/bundle.js” }}

into a tag like this in the html

<script>
concatenated inline JS here
</script>

Thanks,