Can not start service

How can I run a script that will create certain directories in the system?