Go ahead and install https://github.com/chros73/bscpylgtv using pip install bscpylgtv
or compile from source.
bscpylgtvcommand <your-TV-ip-address> launch_app_with_params com.webos.app.factorywin "{\"id\":\"executeFactory\", \"irKey\":\"inStart\"}"