I don’t believe this will work with Start-Transcript.
To clarify, the logging needs to take place within the remote session. My issue is that within the remote session, I’m having trouble identifying what code was called from the invoke-command that spawned the session.