If you want, you can clear the scrollback buffer before entering a particular remote command, so that when you select, copy, and paste the scrollback buffer, only the results of your recent remote command are stored in the buffer. Just right-click the Putty menu bar in your current session and choose "Clear Scrollback".