Creates a RunCommand that runs the given function.
A RunCommand that runs the given function.
The function to run.