How to check Status remote server, start and stop too

with the command

ipmitool -I lanplus -H -U ADMIN -P password chassis power status

got the feedack Chassis Power is on

ipmitool -I lanplus -H -U ADMIN -P password chassis power on

it will start/boot the remote Server
button turn yellow and after 5 Minutes be green (it is the time all the VM needs to boot too)

ipmitool -I lanplus -H -U ADMIN -P password chassis power soft

will gracefull shutdown the server (include all VM’s inside)

i wisch to have a the information and/or button to switch on or off
another button would be for a second server without the switch on/off function

how and where to start to do it?

Create a rule that uses e.g. executeCommandLine to execute a command. Then connect the rule to a button

any link to a information page or tutorial how to manage it?

i startet to crate the rule
if i switch a button is this a thing, trigger or item?
if the command
ipmitool -I lanplus -H -U xxx -P xxx chassis power status
Chassis Power is off the button should be orange
Chassis Power is on the button should change to green

i created for all commands a exec:command:xxx too