We had a requirement to get all workflows from SharePoint 2010 platform to review workflow types and their purpose. prior to migration we wanted to review all custom developments hence with help of internet blog, I have developed PS script to achieve this and I hope it will be helpful to the community as well.
Prior to execution and add your web application on it.
Thank you !
#$siteurl = Get-SPWebApplication https:// | Get-SPSite -Limit ALL