title: Pass parameters into TypeScript script and run it
body: <p>So I'm new to <code>typescript</code>. I wanted to create very simple HelloWorld where I can pass parameter (here mentioned string) to script, but I'm unable to get it to work. Here's what I'm trying to do:</p>
  
  <pre><code>let sentence: string = process.argv[1];
  
  console.log(sentence);
  </code></pre>
  
  <p>But when I try to compile it (<code>tsc file.ts</code>) to produce <code>file.js</code> file to execute it with <code>node file.js "HelloWorld"</code> I get following error for process</p>
  
  <p><code>error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i @types/node`.</code>
  Even after I run command mentioned in Error msg. What's going on?</p>