How to run script (it launches an app) on the screen where the mouse is?

MacOS doesn't have good/consistent app launching control, so I use scripts to launch apps based on whether an instance is currently running or not (if running > new window; if not running > launch app).

How can I make it so the it happens on the screen where the mouse is at? Right now it just seems to start the app on a random monitor.