I am trying to get the SharePoint 2010 workflows running on the SharePoint list directly from the list name and not entering the list item.
But PnP PowerShell syntax needs me to enter the List item as well. Can you please help me with how can I modify the below script so that I don't need to enter the list items and could directly get the result from the list name:
$SiteURL="Enter URL"
$List="Enter List Name"
$ListItem="I don't have to use this in my script"
Connect-PnPOnline -Url $SiteURL -Credentials (Get Credentials)
Get-PnPWorkflowInstance -List $List -ListItem $ListItem
Disconnect-PnPOnline