Extending GetNsCommand to take a command argument