What error do you get? Where did you get this "s_client" script?
Are you trying to run the Openssl application? That has nothing to do with Powershell.
https://www.misterpki.com/openssl-s-client/
I used the Digicert utility to display the cert.
https://www.digicert.com/support/tools/certificate-utility-for-windows