Running Google Lighthouse on Bamboo CI

Hi all, I’ve been trying to run Google Lighthouse on Bamboo CI a while, but I still can’t figure out how to get it to work. The pipeline always fails when it reaches the task of installing Google Chrome, where I get the error message that apt-get command is not found. I’ve acquired a remote agent but I am unsure of how to add capabilities so that it can use the apt-get commands. Below is my bamboo.yaml file

stages:
  - Build Stage:
      jobs:
        - Lighthouse Scan

Lighthouse Scan:
  tasks:
    - checkout:
        force-clean-build: 'false'
        description: Checkout Default Repository
    - any-task:
        plugin-key: com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.builder.npm
        configuration:
          isolatedCache: 'false'
          runtime: Node.js
          command: cache clean --force
        description: npm cache clean --force
    - any-task:
        plugin-key: com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.builder.npm
        configuration:
          isolatedCache: 'false'
          runtime: Node.js
          command: install
        description: npm install

    - script:
        interpreter: /bin/sh
        scripts:

          - apt-get update && yum install apt-transport-https -y
          - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
          - sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
          - apt-get update && apt-get install google-chrome-stable -y

    - any-task:
        plugin-key: com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.builder.npm
        configuration:
          isolatedCache: 'false'
          runtime: Node.js
          command: run lighthouse
        description: lhci healthcheck && lhci collect && lhci upload 

Appreciate any help.