Retrieve the "on disconnect from user sessions" trigger

Hello, I want to create a script with as trigger at logon or atstartup, and its contrary script at logoff or at shutdown.

Problem is that the at logon or atstartup arguments exist but I can’t find the arguments logoff or at shutdown.