Scripting: Add score() back to AbstractSearchScript

See #8377
closes #8416