I wanna uninstall some program via bash script. After run the command - terminal asking me if I'm sure that I want to uninstall it. So I need to answer `y`. I want to do it automatically and answer `y` after delay of 10 seconds. 

I did this example but it's not working -

    #!/usr/bin
    /opt/MNG/MNGVIEWHP/fe/uninstall
    sleep 10
    echo "y"

Any idea? 
BTW - Centos 7.2