I want to write a script program to do something and I don't know how to start. Are there any books or other examples I could look at?.

The best place to start looking for further information about using Visual DialogScript is right here in the extensive support section of this site. You will find User Mailing List and Message Boards, IRC Chat Rooms and other forms of support that can aid you in your learning or continued efforts of programming with Visual DialogScript.