Bash script to test privileged apps