Can an Applescript be run as a step in a MacBook shortcut?
Yes. I recommended it to you on this earlier topic…
… when I suggested that you use the RunAppleScript action.