I have tried below one but isn't working, Any ideas?logged_in_user=$(
scutil <<< "show State:/Users/ConsoleUser" | awk '/Name && !
/loginwindow/ { print $3 }'
)appname="Box"testDirectory="/Applications/${appname}.app"if [ -d
"${testDirectory}" ]; t...