I know there's
htop commands, but they lack a lot of information. For example there is no way to list processes from Energy tab. Or is there at least some kind of API for Activity Monitor which could be used to develop the desired command line tool?
A good reference giving insight on the energy tab is given here. It relates it to the Power column of the top command which you can generate by using top command as such:
top -stats pid,command,cpu,idlew,power -o power -d The power column is not usually displayed due to width of monitor.