I am trying to emulate the functionality of the "Remote Command" SSH option in putty without using a stored session. The "After Login Commands" aren't working and I have tried using the "Advanced/Other Parameters" (-m %HOMEDRIVE%\%HOMEPATH%\path\to\screen.txt, screen.txt contains "screen -raAd" without the quotes) with no luck.
When looking at the debug log and using the Other Parameters option, I see the command being issued to the server, but the server is rejecting it. It doesn't reject it when set at indicated below.
You should try to test it directly with the Putty command line. If it works in command line ,we will be able to integrate it.
Have you tested with Putty command line already? Did it work?