Booking a room by LS

Does anyone knows how to book a Room by lotus script - just as you would do it if you did it UI. I just need to do it by script.

I know that the system is sending a mail to the room or resource. But I don’t know how to create the e-mail.

Can anybody help me?