Script to open specific window/rem/document

I am attempting to write a script to toggle a specific rem. The objective is to create a sort of Quick Entry macro with the MacOs app. I’ve tried to write an AppleScript but it doesn’t seem to work. So I assume that RemNote does not have an accessible AppleScript dictionary.

Is it possible to write a Shell, Java or Swift script that does the trick?

Here’s my failed stab at it.

tell application "RemNote"
		set theWindow to "Telegram"
		set index of theWindow to 1
	end try
end tell