Though to have it available externally you may nee...
# suitescript
m
Though to have it available externally you may need to use a suitelet to expose it