How to run test on the second device connected

I have two devices connected to my PC (that runs on windows).

By default my test run on the first device that comes on the list when using adb devices list. When I change my deviceName capability it still works on the first machine.

I have read that the deviceName is not working for Android.

How can I run my test on the second device connected?

try Fail to use 2 instances of Appium for 2 USB connected Android devices

thanks for solving.
this is BIG!