You can also run some commands immediately after logging into the server.
putty.exe -ssh [username]@[host] -pw [yourpassword] -m [yourfiilename]
You can edit the file with [yourfiilename ] with commands you need to execute, e.g., a file contains commands for ending a screen