We want use python3 with python commands

I ran alias to use python3 with python commands.
However, the version of the python command remains the same.

- script@1:
        inputs:
        - content: |-
            alias python='python3'
            alias pip='pip3'

Do you know a solution?