When you say switch phone off do you mean power down? If so then I don't think Tasker has a action for that.
>
Action / system / reboot / shut down.
I think it requires root,,
> Jean, thanks for your reply. I'm assuming that the phone does not have to be rooted to run shell scripts?
You do not need root to run a shell script, However some shell commands do require root. The best way is just to try it.
If true, can you recommend a tutorial for those unfamiliar with the methods by which we can incorporate scripts into Tasker?
I think you missed jeans hint about 'search'. A google search for 'video how to run shell in tasker' seems to be very revealing..
In other words with a minimal amount of searching you should be able to piece together a task or profile to accomplish what to are trying to do. If you get stuck then post here for help. Include the exported profile or task description along with details on exactly what you are trying to do along with what you have tried and what is and is not working.
To post your profile or task here... Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)
Any linked tasks will be exported with the profile they are linked to..
To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name. Tasker will list your profile with the context name if you have not given it one).