How to use ns.send()

I have been trying to use ns.send(), but it won’t work.

-Can i use ns.send() without creating a class?
-How do i use ns.send() ?