Hi there people!
I have a somewhat unusual script im working on.
I have to find a specific fontawesome script across a bunch of websites handled through the MainWP control system for wordpress sites.
The goal is to deactivate the caching plugin (rocket, at is masks the code in minification), search for the script and catch that, and then to reactivate this plugin again.
The script does work quite well, but, for now only when the CSV file have a single line.
As soon as several lines are present, the values “csvid and csvurl” is seen as one, long, value each.
Which natually cant work.
The system needs an ID of the site to identify it in MainWP, and it need the URL address to make the invoke-restmethod.
I cant seem to figure out why it will not identify each line, as being one object of the loop.
The “write progress” part, so show me a load bar, can identify the different lines with no issue.
I would really appreaciate if someone here can help me figure out what i’m not seeing.
Here is a link to the script: