If you mean using suite script 2.0 in console then...
# suitescript
l
If you mean using suite script 2.0 in console then yes, you can do it with require instead of define, rest of the coding is the same. Or do you mean something else?