Unfortunately, metafields are not exposed in the Script Editor:
If you’re not expecting frequent changes to these metafields, and depending on your requirements, you might want to consider passing the metafield data through to the script editor as line item properties.