Question: I have a column of student final marks (e.g. A1 to A80). In the neighbouring cell (e.g. B1 to B80) I want to create a formula that allows me to do the following:

If below 40% the response should be 988
If between 40 and 50% the response should be 999 
If above 50% the result should be pass

I am not sure what formula to run to so.

Answer: 
As far as I know, this would not be possible with a 'Vanilla' PS4.

You might have some luck with a Jailbreak, but I don't think you will get advice on that here due to the legal issues associated with that.
You definitely need a jailbreak for this, for security reasons. SSH would basically allow an exploitation vector which Sony does not want. The system behind PS4 is actually FreeBSD-based, it's called Orbis OS.

So naturally, if you were to find a jailbreak working for your version, you could just use OpenSSH or DropBear or any other proprietary tool.

But certainly not without a jaibreak.