Usually working with the Linux systems, working within specific user is more probable. So, shelljs can execute commands on particular user instead of executing in the root.
I agree that user can be changed using su but suasks for a password. So non-interactive scripts must be used to change user. So many complications.
So it is better that shelljs executes command on a user from where it was called else provide some function to change user provided the Password.