How can I deploy a contract and make transactions based on it constantly in diem

Is there a way to write a script to constantly deploy and make transactions on diem?