Mac dmg install

I am new to installing mac software via big fix and am not sure how to properly install this software. so far i am able to get the dmg to mount but i cannot get it to install so far i have this but not sure how to run the mounted .app installer

`
// move the DMG file to a temp directory
move “{posix path of file “bomgar-scc-w0dc30z78ziedz5jx6zew1w68xifz7wzwy6e17c40jc90.dmg” of folder “__Download” of client folder of current site}” “/Users/Shared/bomgar-scc-w0dc30z78ziedz5jx6zew1w68xifz7wzwy6e17c40jc90.dmg”

// mount the disk image
wait hdiutil attach -noverify -nobrowse /Users/Shared/bomgar-scc-w0dc30z78ziedz5jx6zew1w68xifz7wzwy6e17c40jc90.dmg `

I was trying to base my fixlet off the shell script they gave me that worked when i ran it as just a shell script:

#!/bin/bash hdiutil attach -mountpoint /Volumes/foobar /var/root/bomgar-scc-{uid}.dmg '/Volumes/foobar/Double-Click To Start Support Session.app/Contents/MacOS/sdcust'

This site:

states this command will install the tool:

sudo /Volumes/bomgar-scc/Double-Click\ To\ Start\ Support\ Session.app/Contents/MacOS/sdcust

You could try that with:

wait "/Volumes/foobar/Double-Click To Start Support Session.app/Contents/MacOS/sdcust"

You may need to run it as a logged in user, I’m not certain.

I’ve done that and it claims to have run successfully in bigfix but the app still doesn’t install

Have you tried to do the same steps manually over SSH? Is a user logged in when you run the task?