Running Erpnext bench commands using root user

Is there a way of using bench commands as a root user in ubuntu, i just set up bench on a computer but to use it i have to switch user which i think is not really useful all i want is to have a frappe-bench folder in my root account and use commands straight using developer mode and i get this message “you should not run this command as root”

i saw previous answers on this question but they were not helpful.

Why not just stay logged in as frappe on another window?