If you absolutely positively must have that functi...
# suitescript
m
If you absolutely positively must have that function, you could build a 1.0 suitelet that called it, and accepted the function parameters in the request, responding with the output of the function, then called the suitelet url from a 2.0 script.