There is a fairly new but powerful feature in Google Sheets, called named function. Just double checking, that it is not possible to create such named function programmatically, using Google Apps Script?
P.S. I know it is possible to create a custom function in google apps script, but this is not what I am asking for.