@JRSF-Home, I see what you're trying to do and why.
Here's a long command line that uses && to combine multiple commands into one:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window https://triggercmd.com && timeout 5 && nircmd win activate stitle "TRIGGERcmd: Remotely run" && nircmd win setsize stitle "TRIGGERcmd: Remotely run" 800 100 500 500
It opens triggercmd.com in a new Chrome window, waits 5 seconds, then resizes and positions the window.
Personally, instead of that super long command line I would create a .bat file like this and have TRIGGERcmd run the .bat file.
"C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window https://triggercmd.com
timeout 5
nircmd win activate stitle "TRIGGERcmd: Remotely run"
nircmd win setsize stitle "TRIGGERcmd: Remotely run" 800 100 500 500
The nircmd win command parameters aren't super intuitive, but you can see how I had it find the Chrome window by the "TRIGGERcmd: Remotely run" text that the Chrome window's title starts with.
https://nircmd.nirsoft.net/win.html
I know you also want to click a button on the page. I'm looking into how to run a command like this in the Chrome console using the keyboard so you could have nircmd do that part too:
document.querySelector('#yourButtonId').click();
Please try the script or command though. It worked for me.
This shows how I simulated clicking the Sign In button on the triggercmd.com login page using this method. Now I just need to figure out the series of keystrokes to automate it with nircmd.
37c540f7-2496-4c5e-bb47-93830d5d8db6-image.png