you can call function from command line argument like below
function irfan() {
echo "Irfan khan"
date
hostname
}
function config() {
ifconfig
echo "hey"
}
$1
once you function end put $1 to accept argument
let say above code is saved in fun.sh to run function
./fun.sh irfan & ./fun.sh config