First: What obj has told you is absolutely correct. You should take his advise as holy.
Secondly: At this point, you need to describe exactly your intent. You prior stated that you’re trying to get WiFi working, however, in the other post, you claim it’s already working. network_monitor.sh is to help maintain a WiFi connection. It doesn’t configure it. If that connection goes down, that script will attempt to reestablish the connection. If WiFi isn’t already setup correctly, it won’t make a difference.
Thirdly: At this point, you need to be posting screenshots of exactly what you’re doing. No copy and paste. No, describing the situation. You’re leaving out critical data when you say what you’re doing instead of showing it.
Please type the following at the command line and post a screenshot:
sudo pico /root/network_monitor.sh
The, type the following at the command line and post a screenshot (if there is a line listed with wpa-psk followed by an long string of numbers and letters, hide it on the screenshot. DO NOT EDIT THE FILE!!! (You don’t want that data exposed publicly).:
sudo pico /etc/network/interfaces