I'm trying to setup a scheduled task to call a script to log off users at a certain time. Does anyone know how to use a scheduled task to run a kix script?

I was successful using PSSHUTDOWN through task scheduler, however this tool shutdown the computer if the user was logged out.