In order to use aliases inside a bash script, we need to issue this command inside a shell:
#!/bin/bash shopt -s expand_aliases source ~/.bash_aliases your_alias1 your_alias2