Activate a switchbot command from HA script?

Is their away to activate a switch bot command that turns on my infra red activated speakers. At the moment I can ask alexa to turn on my living room speakers and via the switchbot skill it sends an infa red signal. I would like as an alternative to me asking alexa to turn on the speakers, for home assistant to be able to control the on and off feature of the speakears. I was wondering if their could be some sort of script that can activate the alexa routine that sends the command.
Ideally if anyone knows if you can driectly acces switchbot hub commands from HA that would be better