Something to consider is that HTOP doesn't leave any text on the console like TOP does. Does this matter?
Here's a kinda hacky way of doing it, but there may be a better way (htop doesn't seem to like being run any other way than just "run" plain and simple..)
This will run htop for 5 seconds. Change the 5 to less if that's too long:
Code:
#!/bin/sh
{ sleep 5; killall htop; exit; } &
htop
Sasha