TextExpander with a Bashscript

How do I get the following bash script to expand correctly using TextExpander:

system_profiler SPHardwareDataType SPSoftwareDataType | grep -E "Model Identifier|Version|Memory: \d|Integrity" | sed 's/^ *//'

The text expansion should look like this for me anyway:

Model Name: iMac
Model Identifier: iMac10,1
Processor Name: Intel Core 2 Duo
Processor Speed: 3.06 GHz
Number of Processors: 1
Total Number of Cores: 2
Memory: 16 GB
Boot ROM Version:
SMC Version (system): 1.52f9
Chipset Model: NVIDIA GeForce 9400
VRAM (Dynamic, Max): 256 MB
Adapter Firmware Version: 1.40
System Version: macOS 10.13.6 (17G11023)
Kernel Version: Darwin 17.7.0
System Integrity Protection: Enabled
Time since boot: 26 days 3:04

Currently, I used via Keyboard Maestro but I want to use it with TextExpander only because I want all my text expansions to work via TextExpander.


Thank you for your help, I really appreciate it!