Add script tag to shopify store from shopify app

Topic summary

A developer is attempting to add a script tag to a Shopify store through a public app, triggered by a button click.\n\nCurrent Issue:\n- Receiving an \

Summarized with AI on November 17. AI used: claude-sonnet-4-5-20250929.

I would like to add script tag to a shopify store on one button click on shopify public app.
Based on the info have, I have implemented the logic but I am getting “[API] Invalid API key or access token (unrecognized login or wrong password)”