Don't know about gamescope, but the core of my own wine launch script is basically this:
if [ -z "$DISPLAY" ]; then
/usr/bin/startx /usr/bin/dbus-launch "$(readlink -f $0)" "$1" -- -layout singleLayout
fi
pw-cli i || (pipewire & sleep .5 ;\
pipewire-media-session &\
pipewire-pulse &)
cd "$DIR"
exec unshare -rcn $ENGINE "$IMAGE" $ARGS
and the rest of the script is about setting up the environment for the game: setting all the parameters used above, exporting the correct WINEPREFIX, mounting .iso's if required, etc.