Executes a block's OnSetup method.
This function is typically used within the pipe execution environment to perform block setup. However, this function call also be used when unit-testing blocks.