Well, to ask a questions, and record the answer in memory, use the "read" builtin command. Here's an example (I wrote it in sh instead of ksh, since I don't know which you're using, if either- this should be portable between the two, with the exception of the echo statement):
Of course this script isn't of much use to anyone, but it gives an example of using read.
Hope that helps.
#!/bin/sh
# Simple example to read in a line, then echo it out
# If you're using Linux, you'll need to use "echo -e"
# instead of "echo"--> UNIX.
echo "Please Enter The Program Name: \c"
# The \c tells echo not to add a new line
read PROG
# That's where it takes your input and stores it into the
# variable "PROG" - you can name this whatever you want
echo "\nThe \$PROG variable was: $PROG"
# The "\n" forces echo to insert a new line at that spot
#Checking processes
ps -ef |grep "$PROG" > f1
cat f1 |cut -c 1-8 > a.1
cat f1 |cut -c10-14 > b.1
paste a.1 b.1 > B
cat f1 |cut -c49-72 > c.1
paste B c.1 > final
echo "STARTING TO CHECK"
echo "3"
sleep 1
echo "2"
sleep 1
echo "1"
cat final |more
rm f1
rm a.1
rm b.1
rm c.1
rm B
rm final