Yes, you can use the REST API: Resources (netapp.com)
This will allow you to incorporate a CURL command within your favorite scripting language to automate this process.
For example:
POST /azure/ha/working-environments/{workingEnvironmentId}/stop
POST /azure/ha/working-environments/{workingEnvironmentId}/start