You will need to install a user script manager extension to install this script.
1. Go to http://steamcommunity.com/my/friends/
2. Select which friends you want
3. Enter your message
4. Press "Post Comments to Selected Friends"
5. Wait for all friends to be processed