bash file to detect chrome installation
This will check if Chrome is installed in the default location, then open a file at a path with arguments you have set.

CHROMEPATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
if [ -x "$CHROMEPATH" ]; then
    "$CHROMEPATH" file:///path/to/file --yourargs
fi