Triggering Automation via Orcaslicer

I wanna automatically turn on the smart outlet to my 3d printer via orca slicer.

I found a workaround with executing a .bat file via the post processing scripts:
grafik

@echo off
curl -X POST http://192.168.0.2:8123/api/webhook/StartPrint_X

Sadly this doesn’t seem to be very reiable. Does someone have any tips for me or other ideas on how to set this up?

Cheers
Lennard