I edited this answer to fix a mistake in english grammar as well as a powershell syntax error. I believe my edit is correct but the answerer has rolled it back. As of now, the script in the answer is back to not working. Should I do anything further or forget about it?
Your edit was correct in both respects.
It is a shame it was retrospectively rejected by the post author, after being narrowly approved by the first three reviewers.
The author has now corrected the script as you suggested, but the ungrammatical "peaks my interest" is still present.
Perhaps the edit was rejected (instead of improved) in a fit of pique 😁
It's not worth arguing over though. At least the code is functional now.
If you feel it is worthwhile, you could add a separate answer.