This is not possible, but you can use workarounds, such as creating a plug-in to provide a local http service, and then calling it in an external script.
E.g
/api/note/action/open?id=***