Can't find GetModuleFilename in non-editor mode

Building on Visual C++ 2019 Professional.

FString moduleName = MSimCppPlugin;

*FString dllPath = FModuleManager::Get()).GetModuleFilename(FName(*moduleName));

The above line compiles fine in “DebugGame Editor” mode. In “DebugGame” mode the compiler reports that ‘GetModuleFilename’: is not a member of ‘FModuleManager’.

The same thing happens in Development and Development Editor modes.

Any ideas?

Thanks