I just ran it with most lines commented out and it...
# suitescript
a
I just ran it with most lines commented out and it was successful. And yes, I logged
SO.id
and did get a valid and correct ID.