allow to set script info by function (for cli usage)