A family of Microsoft on-premises document management and storage systems.
@ BenjaminLee-0319
1.You could try to execute the following script on the SharePoint server. This should list info on all the working workflow on the server.
#Load SharePoint snap-in
Add-PSSnapin Microsoft.SharePoint.PowerShell
#Fetches webapplications in the farm
$WebApplications = Get-SPWebApplication -IncludeCentralAdministration
foreach($WebApplication in $WebApplications){
#Fetches site collections list within sharepoint webapplication
Write-Output ""
Write-host "Working on web application $($WebApplication.Url)" -ForegroundColor Green
$Sites = Get-SPSite -WebApplication $WebApplication -Limit All
foreach($Site in $Sites)
{
#Fetches information for each site - old code
$site = Get-SPSite($Site.Url);
$site.AllWebs | foreach { $_.Lists | foreach { $_.WorkflowAssociations | foreach {
write-host "Site:" $_.ParentWeb.Url ", List:" $_.ParentList.Title ", Workflow:" $_.Name
Write-Output "=========="
} } }
$Site.Dispose()
}
}

2.The below PowerShell script is to list all workflows from SharePoint 2013/2016 site collection using PowerShell
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null)
{
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}
$site = Get-SPSite("http://sp/sites/echo");
$site.AllWebs | foreach { $_.Lists | foreach { $_.WorkflowAssociations | foreach {
write-host "Site:" $_.ParentWeb.Url ", List:" $_.ParentList.Title ", Workflow:" $_.Name -ForegroundColor Cyan
} } }

Thanks,
Echo Du
=============
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.