if hspice has been install correct, you should type hspice, and then it should request you a file name .sp file.
and if you wanna view your graphic results, type in your script .OPTION POST=2
then compile again and there will appear a new files .ac0 and .ic0, that you should open with gwave.