How to paste a copied code snippet in a niagara module script

Hi everyone. I am trying to use the code snippet found here Niagara Spawn particles in custom positions | Unreal engine Code Snippet 5

But I have not been able to find where I could paste it in a Niagara Script. I can only use the nodes in the script but there doesn’t seem to be a place where I could paste a code snippet.

Very sure I am looking in the wrong direction and it is just there starring me in my face but any help would be appreciated.