Maybe look into this:
https://stackoverflow.com/questions/16213916/change-status-of-lync-by-script

Good find here, @dbeato. Thank you. I will play around with those scripts.