Curl command-line examples needed to turn OFF or ON a device

I need to turn ON and OFF a device via Windows command-line. I have Curl. I just need a few working examples I can easily modify for my setup …only changing the IP, username. password, port, entity_ID, OFF or ON.

My understanding is this needs to be done using YAML format. I am not sure how to do this with curl. I am hoping someone would be kind enough to post a fully working example for me to modify.