Error when Type = TargetType.Program and bCompileAgainstEngine = true

I have been trying to develop a small console application which requires to use Engine classes.
I am getting the below error

Couldn’t find parent type for ‘MovieScene2DTransformTrack’ named ‘UMovieScenePropertyTrack’ in current module (Package: /Script/UMG) or any other module parsed so far

Any solution for this?
Can’t we use Engine classes(For example, UStaticMesh) in a console application?

Please answer this question. Same question was posted long back but no one answered :frowning:

Thanks in advance.