Execute a commad with or without a parameter