Change game mode from cmd

Hi I am trying to change my game mode from cmd.

In visual studio Project->Properties->Configuration Properties->Debugging->Command arguments
I use ?game=/Script/MyProject.MyGameMode -game and it switches my game mode

But when I package my project and use the same args, it is not switching the game mode
It uses the default game mode present in DefaultEngine.ini