WOL curl script project help

Im running OH3 in docker, official release
My problem is:
My PC is turn via WOL (wake on the lan)
and is turn off via a curl command.

My big problem is how i do this? in OH2 was so easy
plus i need to public this in openhab cloud as a switch

Since im a noob on this i really need some help like baby steps

This is the curl:
curl http://xxx.xxx.x.xxx:5001/secret/hibernate

Try the network binding:

or try to do the call directly via OH:

This thread contains a few screenshots and may help to understand the steps to do the wake-up part