title: Postman scripts : "pm is not defined"
body: <p>I try to write a Pre-request script in Postman. I want to to make a request so I try to use <a href="https://www.getpostman.com/docs/postman/scripts/postman_sandbox_api_reference#pmsendrequest" rel="noreferrer"><code>pm.sendRequest</code></a>. For example :</p>
  
  <pre><code>pm.sendRequest('http://example.com', function (err, res) {
      //...
  });
  </code></pre>
  
  <p>But I get this error :</p>
  
  <p><code>There was an error in evaluating the Pre-request Script: pm is not defined</code></p>
  
  <p>I'm on Windows 10. I just updated the extension.</p>
  
  <p>How do I access <code>pm</code>?</p>