Is it possible to set the size of nodes through script ?
What do you mean by the size of a node? The size in Neo4j Desktop?
the Circle size of the graph nodes
You can if you have Bloom, not in desktop.
Bloom is free in desktop now and you can set rule based sizes