I am looking to use the scep_daemon --status command in a bash script and this is new to me. Running from a Terminal it works. Running in a Bash script it never outputs any information. Any advice would be appreciated.
This is what I currently have setup in the script.
echo "<result>$(echo /Applications/System Center Endpoint Protection.app/Contents/MacOS/./scep_daemon --status | grep 'StartupScanAfterLogon')</result>"