We have a heavily used solution. In order to reduce long running instances, we defined a business process (identify long running instances, give user chance to extend, backup of application data and flag request as cancelled at application level i.e. setting status as cancelled in application tables).
For the most part this process is automated but I have not been able to automate the cancellation of workflow instances. Currently, I cancel instances manually one by one. I wish to automate this part as well. The cancellation process is built in Powershell, I don't know Visual studio. Is it possible to call Management API in Powershell to cancel? What other options I have besides Visual Studio?
Thanks