Open Android Auto and follow the pairing instructions. Pro Tips for Huawei P50 Pro Android Auto Stability
If you are determined to get a car interface running, here are the most common (though often unstable) methods: Gbox / GSpace Method: Some users report success by installing HUAWEI AppGallery