You should put the commands into a shell script. Then you can use variables, conditions and much more.
Untested example without checking for empty variables:
MIN_ACT=10
ACTIVITY=$( collectl -c1 -i5 -sn | awk 'NF==4 && $2<200 { print $1 }' )
if [ $ACTIVITY -lt $MIN_ACT ]; then
TORR_PID=$( ps aux | grep "[q]bittorrent" | awk '{ print $2 }' )
kill -s SIGTERM $TORR_PID
fi