Hi. Nowhere near that simple. First , the design needs to take note of the stalling current and then ramp down that current at a set interval after stalling ( say 1 second ) so that the pads are fully pressed onto the rotor. Then , on disengagement, the pads need to be retracted by a set amount ( ie the motor needs to wind back by a set number of rotations . ) At pad change , there needs to be a protocol that fully retracts the piston . And to ice the cake , the hydraulic pistons are not actuated by the motor: the latter actuates a centrally mounted single piston , which means that that the hydraulic circuit is not in any way integrated into the parking brake, so having this parking brake operated via the ABS circuit is of no use or value .
Stalling current and current sensing are not too bad with a few transistors and a MOSFET on a nice big heat sink . Timer delay using a standard timer chip. The other bits are causing a bit more head scratching, hence the idea of using an aftermarket controller( one or two designs available from places in the States , Pantera electronics being one of them . ) That one is designed for the Brembo /Tesla calliper which has a different drive motor ( I have the TRW one ) but that alteration is easy as per the above
Anyway , nothing quite like taking something that works, removing it and putting in its place something that doesn’t . 😀😀😀