Motor control via a digital button (dashboard)

I guess you send G Code to it.

There are a hand full of posts (including your other post where I pointed you towards to GRBL libs) and some others from @MadTooler and another Precision CNC Masking Machine using Node-RED Dashboard & GRBL32 CNC Control by @dudleyjosh - if these guys are still around, they might be able to point you in the right direction. Otherwise you will have to work out how to parse and transmit G Code yourself.

I have no idea what you mean by this.