Executing .NET Core functions in a separate process