You will need Ruby. Then:
gem install twitter
Specify access to Twitter API and Twitter nickname in the script. Then:
ruby twi.rb
And go drink your coffee. It's all.
You can use the full version Twitter Toolkit onRails - Follow, Unfollow, Retweet, Posts, Tweet Parser.