Dashboard with Scripts

Hi there,

I am a beginner and like to know how to use a script inside a card or box on a Dashbaord.

Any help will be much appreciated.

Thank you.