Event local script
It would be great to have ability to run a local script (shell or batch/powershell) before and after a print.
My objective is to initialize watt meter before each print and register real power consumption at the end.
You can. Read the manual at the end in advanced themes is a chapter
Calling External Commands
that explains hwo to call commands. In configuration->G-Codes->Evend depending you habe the start and end event.