How can I run app automation with C# on Selenium 4? I am getting error "desired capabilities are deprecated" error ever since I upgraded

How to run app automation with C# on Selenium 4?