Can't execute a script

I have a script with a .sh extension. When I try to run it from the command line using: test.sh ,I get this message: ksh: test.sh: not found

How do I run this?

check whether the path where the script is available is with env var $PATH

check if the script is executable

run it as ./test.sh in the current path itself if you dont want to edit the $PATH var

if test.sh don't have execute permissions
it will give error
ksh: test.sh: cannot execute
but u r getting error canno found.
U check current working directory by
pwd
then check where the file test.sh exists.
Include the path of test.sh directory in PATH of ur profile.

you probably have ^M chars in the file.
do a cat -vets and if so dos2unix