Package yad must be installed for this script.
#!/bin/bash
PROGRAM=`yad --center --width=500 --height=100 --text-align=center --text="You can check program status by writing program name to text box and pressing then ok" --entry --entry-label=NAME --entry-text=""`
if [ $? = 0 ];
then
x-terminal-emulator -e /bin/bash -c "apt-cache policy $PROGRAM && yad --center --borders=5 --width=400 --text-align=center --button=gtk-ok:1 --title='$PROGRAM status checked' --buttons-layout=center"
else exit 0
fi