Can't run wine as a separate user

So, I followed the steps in the ArchWiki about running wine as a separate user account. Basically, this script should allow me to open wine and redirect it so that it doesn’t use my main user account to prevent home directory access. For reference, this is my /usr/local/bin/runaswine script:

#!/bin/bash
xhost +SI:localuser:wineuser
sudo -u wineuser env HOME=/home/wineuser USER=wineuser USERNAME=wineuser LOGNAME=wineuser wine “$@”

The first line adds wineuser to the x server permissions list, and the second line runs wine with env, basically telling it to run wine as the account wineuser.

However, running the script leads me to some issues. For one, any time I try to run an .exe file, I get the following error:

runaswine game.exe
localuser:wineuser being added to access control list
Reading profile /etc/firejail/wine.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 4085, child pid 4086
Warning: cannot open source file /usr/lib/firejail/seccomp.debug32, file not copied
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Child process initialized in 117.04 ms
MESA-INTEL: warning: Haswell Vulkan support is incomplete
0024:err:module:process_init L"C:\windows\system32\game.exe" not found

For another, I attempted to configure wine as the wineuser, however I get the following error:

runaswine winecfg
localuser:wineuser being added to access control list
Reading profile /etc/firejail/wine.profile
Error: cannot access profile file: wine.local

my uname -a:

Linux macbookpro11 5.9.16-1-MANJARO #1 SMP PREEMPT Mon Dec 21 22:00:46 UTC 2020 x86_64 GNU/Linux

and my wine version is 6.4

edit: added short explanation of the runaswine script

this seems wrong and overly complicated
What is that Arch wiki you are referencing?

For reference, this is my /usr/local/bin/runaswine script:

whatever that is - or where you got it from
what is it supposed to do?

What are you trying to do?

My bad, I should have added a brief explanation since I couldn’t link the site. I edited my former post, but basically the script runaswine forces wine to run as the user wineuser instead of my main user account in order to keep wine from accessing my home directory.