importing materials from 3ds max and connecting to roughness input?

I have a fbx file from 3ds max, where I have set up a material that has diffuse and roughness texture (the roughness texture is plugged in the glossiness input of the standard material in 3ds max).
Now I want for Unreal to automatically connect the roughness texture to the roughness input in unreal, but this is not happening.

Is there any way to tell unreal to connect the roughness texture to the roughness input?
I need this, because I have an asset that has 27 materials and I have to reconnect the roughness texture to all 27 materials, which is time consuming, while I have the shaders all set up in 3ds max.


The Standard material in 3ds Max does not represent PBR materials that UE4 has so only the most basic things correspond.