If I rewrote an episode from a completely different show to fit with Lois & Clark, would it be classed as plagiarism?

Especially if I plan to keep the majority of the dialogue intact. I don't have the script for this episode, so everything written outside the speechmarks would be mine.


I was home eating chocolate—cottage cheese.
Chocolate flavoured cottage cheese. It's a new flav—
I was doing my laundry.

—Lois Lane