Absolutely. In fact, there is a script in the calendar specifically set up to receive commands from your other layouts (or even other files).
The script is called "Create Edit Delete Event ( SourceNo ) { Operation , DateStart , DateEnd , TimeStart }" and it can take any number of parameters to let you manipulate events using your own scripts.
For example, you may use the following parameter to create a new event for the current date:
Read the comments at the beginning of this script to learn about other parameters you can send to this script.