Send wol packet on external device

Hi all,
I need to turn on my fileserver pc from Nextcloud web interface, or just send a preconfigured shell command with ssh protocol.
Someone have same need ?

There are scripts that do wol via php, you could try to write an app doing this.