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:

system.builder.python.Python38=C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python38\\python.exe

system.builder.py.pip=C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python38\\Lib\\site-packages\\pip
Broken Links:
  tasks:
  - checkout:
      force-clean-build: 'false'
      description: Checkout Default Repository
  - script:
      interpreter: BINSH_OR_CMDEXE
      scripts:
        - pip install BeautifulSoup4
        - pip install lxml
        - pip install requests
        - python3 broken_links.py
  requirements:
    - Python38
    - pip

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