Open PCManFM, Go to Edit/Preferences/General, Check box for "Don't ask options on launch executable file"
Here is what the above code is Doing:
1. It’s creating a new file called “test.sh” in the current directory.
2. It’s writing the following text to the file:
echo "Hello World"
3. It’s making the file executable.
4. It’s running the file.