Windows Command Line Graceful Startup and Shutdown possible?

curl -X POST -H X-API-Key:yourapikey http://localhost:8384/rest/system/shutdown

(Or the powershell equivalent; I know powershell has “curl” but not sure if the options match up.)