Sometime complicated commands can fail such as:
mac -p 'prod' 'aws ec2 describe-instances | jq -r .[][].Instances[] | jq -r .InstanceId'
I believe this has something to do with the way redirection / pipes work. These complicated commands seem to work when mac is called from powershell, but not bash. This can be worked around by create a shell script with the complicated command, then calling the shell script.
EG:
cat <<EOF > runme.sh
#!/bin/bash
aws ec2 describe-instances | jq -r .[][].Instances[] | jq -r .InstanceId
EOF
mac -p 'bryanlabs' './runme.sh'
Determine if there is a way to modify mac.go to allow for these complicated commands to be directly called.