I've done this before, using a Script Component source.
You'll find articles online from others who have done this before. Here is an example.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.