First, ensure you have Lighthouse installed globally by running "npm i -g lighthouse".<p>Then, run the following script to audit any desired site against the accessibility test.<p>If the audit is successful, you will see "Accessibility score is 100." printed in the terminal. Otherwise, it will list all the errors in the terminal which the site administrator can debug and patch.<p>site="https://google.ca"; form_factor="--emulated-form-factor=desktop"; accessibility_score=$(lighthouse --only-categories=accessibility "$form_factor" "$site" --quiet --output=json | jq -r '.categories.accessibility.score * 100'); if [[ $accessibility_score == 100 ]]; then echo "Accessibility score is 100."; else (echo "Accessibility score is $accessibility_score." && lighthouse --only-categories=accessibility "$form_factor" "$site" --quiet --output=json | jq '.audits | to_entries[] | select(.value.score == 0) | .value.details.items') fi<p>NOTE:<p>a) You can audit the test for either "desktop" or "mobile" by setting the "--emulated-form-factor" flag to the desired value.