The command to shut down my computer is : Rundll.exe user.exe,exitwindows
But, what is the command to end sesion??