Not able to run a program with a .sh script using Ubuntu WSL [closed]

I am new to Ubuntu. I installed Ubuntu on Windows 10 to run a program with Linux using ubuntu.

When I double-click on the Ubuntu app I get a shell (believe it is a WSL shell) with my username@Desktop-IULTFHD-. Inside this shell, I get some info on root etc. for couple of lines and my username@Desktop-IULTFHD: $

I type cd to change the directory to the location of the software. Then I run the .sh script. However, it is either saying too many arguments or this command not found.

Can someone help to check:

  1. Have I downloaded correct version of Ubuntu app.
  2. If so, how to cd to get the path to direct that particular file and open the script.
  3. DO I have the correct WSL

You cd to the directory that contains the file, not the file itself. Alternatively, you can skip the cd command and just run the file by executing the full path of the file including the filename.

Example execution of a file named script.sh in your ~/Downloads directory (assuming your user name is surendar):

/home/surendar/Downloads/script.sh

or to cd:

cd /home/surendar/Downloads

and then to run the example file named "script.sh"

./script.sh

You must prefix the script or file name with ./ if the file is in your current directory or it will not run.