import ctypes
import sys
import time

py_exe = sys.executable
script_path = r"c:\Projects\AutoPOE2\scratch\test_shell_desktop.py"

ret = ctypes.windll.shell32.ShellExecuteW(
    None,
    "open",
    py_exe,
    script_path,
    r"c:\Projects\AutoPOE2",
    1
)
print(f"ShellExecuteW returned: {ret}")
time.sleep(1.5)
