ArDanZ11 You need to use the EXACT name of the node
That's not entirely true. A node will accept a script extending any native class that's upstream in node's inheritance hierarchy, or any custom class with whom it shares a common native class ancestor.
For example if you have a script that declares:
class_name MyClass extends Node
You can attach that to absolutely any node type.
If you then make a script that declares:
extends MyClass
You can attach this to any node type as well.