'How to start two PWA applications in different locations through script execution?

I have two PWA Apps that I need to open at a specific starting location on my desktop PC by executing a script.

I use chrome_proxy.exe and set the --window-position to start my app. When I execute the script, two PWA Apps there are overlapping in the same position seems there use the first --window-position parameter.

start "" "C:\Program Files\Google\Chrome\Application\chrome_proxy.exe" --app-id="idakhhohoppeeepmmohnmhmdoajcllff" --profile-directory="Profile 1" --window-position="0,0" 
start "" "C:\Program Files\Google\Chrome\Application\chrome_proxy.exe" --app-id="idakhhohoppeeepmmohnmhmdoajcllff" --profile-directory="Profile 1" --window-position="1390,0"

So I use chrome.exe and just use the real url with app mode to start and then work fine.

start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --app="http://localhost:81/" --window-position="0,0"  --user-data-dir="D:/Chrome/Profiles/1"
start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --app="http://localhost:81/" --window-position="1390,0" --user-data-dir="D:/Chrome/Profiles/2"

If I add the --user-data-dir parameter to chrome_proxy.exe, the start location works correctly, but doesn't show my app it's blank!!

start "" "C:\Program Files\Google\Chrome\Application\chrome_proxy.exe" --app-id="idakhhohoppeeepmmohnmhmdoajcllff" --profile-directory="Profile 1" --window-position="0,0"  --user-data-dir="D:/Chrome/Profiles/1"
start "" "C:\Program Files\Google\Chrome\Application\chrome_proxy.exe" --app-id="idakhhohoppeeepmmohnmhmdoajcllff" --profile-directory="Profile 1" --window-position="1390,0" --user-data-dir="D:/Chrome/Profiles/2"

How can I use chrome_proxy.exe to execute PWA Apps and make the result match the way chrome.exe executes?

My chrome version is 99.0.4844.74.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source