Thanks a lot!
your scripts are working great!
in case anyone cares, I found answer to 1 to be:
if echo "Shutdown System?" | col -x | xmessage -center -buttons No:1,Yes:0 -default Yes -file - ;
then sudo /sbin/shutdown -h now ; fi
probably incredibly crude but works
thanks again!