Nesting a rest resource asset in content container template - global keywords not working

Similar approach to what I answered in Container template with metadata fields - not working with asset listing

Something like:

<script runat="server">
print('%' + 'globals_asset_contents_raw:1234^with_get:url=' + '%asset_metadata_url%' + '%';
</script>

Where 1234 is the asset ID of the REST Resource.