Running python3 and pip commands in Bamboo using Remote Agent

I have a remote agent dedicated to my Bamboo Build Plan. I want to run a python script, which requires pip installation of libraries before the script can execute. I’ve already added the pip and python executables into the remote agent’s capabilities, as such:

Broken Links:
  - checkout:
      force-clean-build: 'false'
      description: Checkout Default Repository
  - script:
      interpreter: BINSH_OR_CMDEXE
        - pip install BeautifulSoup4
        - pip install lxml
        - pip install requests
        - python3
    - Python38
    - pip

But, when I run the pipeline, I get the error that pip and python3 are not recognised commands. Please help