You can do pretty much anything with script in Cli...
# suitescript
n
You can do pretty much anything with script in Client Scripts - for the UI I mean