I want to run a cli 'display serial' command from the shell pompt

the cli commmand ‘display serial’ shows some important info for monitoring serial ports. I would like to script this by using ssh to run remote commands. Problem is, ‘display serial’ is not a UNIX type command. Is there a way to run cli commands via a shell script?