It is not possible to open a different Library with AppleScript. It always open the last opened library.
tell application "Photos"
open "/home/benutzer/Pictures/Testlibrary.photoslibrary"
activate
end tell
Selecting any option will automatically load the page