Print ["Mathematica version " <> $Version]

(* Note that $CommandLine returns STRINGS *)

FirstArgument= $CommandLine[[2]];
SecondArgument = $CommandLine[[3]];
ThirdArgument = ToExpression[$CommandLine[[4]]];
Print ["First argument is " <> FirstArgument]
Print ["Second argument is " <> SecondArgument]
Print ["Third argument squared is " <> ToString[ThirdArgument^2]]
Print ["Total number of arguments is " <> ToString[Length[$CommandLine]-1]]
