Zenity is already meant to be run by other programs (like shell scripts). Please see these documentation pages for info about how to invoke existing programs:
https://docs.perl6.org/syntax/qqx https://docs.perl6.org/language/quoting#Shell_quoting_with_interpolation:_qqx Hope that helps! - Timo