scheduled task to logon to remote windows 10
Solution 1:
You could maybe use a remote desktop connection with settings for which programs to run on the remote, note that this do require that you already are loged in on the local machine to have a desktop to render to. There might also be other RDP clients that you could run from console.
Another approach could be to have automatic logon for a separate user on the other machine using https://docs.microsoft.com/en-us/troubleshoot/windows-server/user-profiles-and-logon/turn-on-automatic-logon And then autorun the programs and finally lock the computer.
To lock the computer use Rundll32.exe user32.dll,LockWorkStation