You will need to let shortcuts run scripts and allow assistive access to control your computer. but heres the code
tell application "System Events" keystroke "Your text here" end tell
you can also add a second line of keystroke.