As a follow up to my previous question on editing a workflow;
I have been able to change the contents of the workflow and publish it, however the problem is the change is made to only one site. Ideally I would publish the site to all pages at once via the root but this does not happen. I have tried using the script found below;
But this script does not find our custom workflow - only the built ins. The workflow works and is activated so I'm pretty stumped as to why I can't find it.
The custom workflow is a 2013 reusable workflow created in SharePoint Designer.
Any ideas on how I can mass publish the workflow?