Sample script for sending iMessage using Python3 and Apple Script.
Usage (MacOS with active iMessage only):
python3 main.py "phone/email"
P.S. You can only use Apply Script to do this, but I used Python to make it simple xD
Inspired by my girlfriend LOL.