function name not declared in this scope... but it is!

void executeCommand(Commands::command cmd) {
   Serial.println("Processing Command");
}

I don't think that is a valid syntax for function parameter