How do I assign a script to a clone through another script?

I need to assign a script to a cloned missile that will allow it to explode on impact. What is the correct code to do this assignment through another script?

You can use AddComponent on the newly created clone

var clone=Instantiate(......);