Well I've never used phpshell but with standard ssh, before executing the script you first need to be in the root directory of your site. So that would mean typing (on a standard shared hosting linux box):
cd /home/youraccount/public_html
The above is if your ezpublish installation is located in your main directroy, just modify it to be yohur subdirectory if you installed in there instead.