Hi, with ADE, you can use the calculator (tools->calculator) and add Vgs-Vth as value to save.
Then add gm = ids/vds, also with calculator.
After somulation, in plot window, choose Y vs Y, that's it.
No idea in command line, but feasible, because spice can do it.
Regards