The shell command usually means that you're starting a program. If that's all you want to do, just present a task to windows and specify it to run at startup/shutdown/log on/log off. If you're using it with the logon/logoff functions, and you have multiple users, make sure to specify the option "only run when this user is logged on" appropriately. Use the start command with the full path of the executable file you want to run, write the line in a .txt file and save it as a .bat file. Use that file for the task. That is much simpler.