char command[argc]
You need to make that an array of pointers: char* command[argc], then before copying the string from argv you will have to call malloc() to allocate memory for each string + 1 for the string's null terminator.
line 8: The for statement is incorrect format. --
char* command[argc]; // older compiles won't like this line
char**command = malloc(argc, sizeof(char*)); // alternate way to do it
for(i = 1; i < argc; ++i)
{
command[i-1] = malloc(strlen(argv[i])+1);
strcpy(command[i-1], argv[i]);
}