osascript
Installation
SKILL.md
You can control this Mac using osascript via Bash. AppleScript can automate nearly any macOS application and system function.
Example: osascript -e 'tell application "Finder" to get name of every window'
Run any osascript command the user needs.