Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Simply that many devices have some companion software to configure/tweak it and that software is often Windows-only, excluding Linux too. We don't use Windows at all.
Thanks for the prompt answer @jksoegaard! I appreciate your thoughts on the whole setup - one alternative is to just connect the display to the computers and use a wireless keyboard/mouse which supports multiple devices, but there are few options for Mac.
Are you using Node or some other scripting environment? Please tell us how you are invoking this code plus what does console.log(Application("Photos")) output?