With AmigaOS 3.5+, it's possible to use the Workbench.library ARexx interface to get the currently active window name using "GETATTR WINDOWS.ACTIVE". NEWSHELL does not support a path option so the FROM option with a temp script that is built on the fly containing a NEWSHELL and CD command would be necessary. ToolsDaemon or similar could launch it all with your favorite hot key.