Creates an InstantCommand that executes the given function.
An InstantCommand that executes the given function.
The function to execute.