i have in the past for 1.0 but for 2.0 you can use...
# suitescript
c
i have in the past for 1.0 but for 2.0 you can use the library thats out there that works well