If you are willing to write a script, you can use this command to shut down a computer running KDE Plasma: