cmTry{Compile,Run}Command: Port away from legacy cmCommand

Convert the command entry points to free functions.
6 files changed