In the screenshot you have it set to "Active Window", and in the field for the other option there's a file path, which isn't how targeting works.
Also, that's the command-level option, not the profile-level option.
Uncheck that command's "Send command to this target:" option, click "OK"
Then, while the game is running, click the "Options" button at the top of the "Edit a Profile" window, and on the "Profile General" choose the second option for the "Send commands to this target" option (I.E. not "Active Window", but the one to the right of that, and choose the game from the dropdown.
Click "OK", click "Done", then test the command ingame.