There are already keyboard shortcuts for superscript and subscript that have nothing to do with the equation editor. Contrary to what shortcuts are shown for Format > Font > Baseline, the superscript shortcut for selected text is really shift-ctrl-command-+, and for subscript, it is the same keyboard shortcut using a minus (-).
If you want to shove an embedded equation into the current insertion location within inline text, then the following AppleScript will do that for an open Pages document:

use scripting additions
tell application "Pages" to launch
tell application "System Events"
activate
tell application process "Pages"
set frontmost to true
keystroke "e" using {option down, command down}
keystroke "x_{(i,1)}^2"
click button "Insert" of sheet 1 of front window
keystroke space
end tell
end tell
return