One of my automated process starts dynos when he feels he need more juice in the pipes. But, while running tests, something failed and just kept 10 or more dynos running. It's a pain to stop those manually.
Here's a simple command line that can be executed to stop all running dynos except those initiated at runtime or in via the Procfile.
heroku ps -a <HEROKU_APP> | grep -o -P '(run\.[0-9]+)' | while read line ; do heroku ps:stop $line -a <HEROKU_APP> ; done