Help Storing PID

I have to write a csh script to achieve the following: Run a command and store its PID as a two char variable then issue the ps command. If the ps command is successful output a string if it fails output a separate string and include an if statement and use the test command. Help would be greatly appreciated. I am extremely new to scripting and consequently very lost.
Thank You

Posting homework violates the forum rules.