Using SSH inside Local, php command is not recognized, how can I solve this?

Hello,
i’m trying to upgrade an old phpBB installation i have.
My local environment is Local.

To complete the upgrade I have to run a php command using CLI, but I get an error message : php command is not recognized. If I setup WAMP to then set an alias for php, it conflicts with Local, so I uninstalled WAMP; but still, how do I make “php” commands work while using SSH in Local ?

I wanted to create an alias to the php exec file, but couldnt find it.

Thanks