adb shell am start -n com.b.game/com.b.game.module.gameDetail.GameDetailActivity --ei pid 10 --es id "66"
To briefly explain, --ei indicates that the parameter type is an extra integer, and --es indicates that the parameter type is a string (extra string), and then they are followed by a key-value pair to identify the parameter name and specific value. If you need other types, you can refer to the article mentioned at the beginning or use am -h to view the help.