It's pretty much the example given in the docs wit...
# suitescript
x
It's pretty much the example given in the docs with a couple (very minor) modifications.