I have written a script which checks whether sql agent is running and then starts sql agent if its not. You can also do the same using SP_Configure and the net start commands.
SP_Configure is used to enable xp_cmdshell command. Its a simple stored procedure which is configured to run during startup.
Come back here if you have any doubts.