Run Script Action - Alfred Help and Support
Use the Run Script action in Alfred workflows.