This script will get all the editForm webparts and export it to a csv file. From there you can filter down for Script Editor and Content Editor Web Parts in the csv file. To get NewForm or DisplayForm update the script to look at DefaultNewFormUrl or DefaultDisplayFormUrl.
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
There is no direct way to migrate infopath form to power apps or convert XML form library to SharePoint list.
It's necessary to re-create power app forms.
More information for your reference:
Use ShareGate to make a copy of the list again and deselect the "Customized list forms" in your configurations section of the copy options screen. This will create a duplicate list with the default SharePoint forms. You could then customize the form using content types or a third-party product like Nintex.
You could also try enabling custom scripts ...