Regarding the posts about regular expressions and combining with the post about changing single quotes to doubles but not apostrophes:
s/\w’|[.,?!]’/“/
That’s a Perl style regency which would handle most cases.
You are so out of my league! I assume that's programing language that would be run at a dos prompt for a designated file.