The usage of these scripts should be relatively straight forward. If you want more details, please refer to the corresponding blog post: https://blog.yrden.de/2014/11/14/remote-control-bravia-tvs-with-authentication.html
joekieffer/bravia-auth-and-remote
Shell snippets to auth and send remote control commands to Sony Bravia TVs
ShellISC