Script not working in Automatic mode

Would this be inside of the C# code?
Or would this be inside of the Dynamo workflow?

I tried to follow the example in here ( Execute Dynamo Script from Revit API - Revit - Dynamo (dynamobim.com) ) so that the C# code invoked the DYN and executed it in Manual mode but it’s not compliling. It’s firing CS0176 error.

dynamoRevit.RevitDynamoModel.OpenFileFromPath(Journal_Dynamo_Path, true);
dynamoRevit.RevitDynamoModel.ForceRun();

Thank you for your help so far