title: How can I call a REST API from jenkins pipeline script when the node my script run is?
body: <p>In jenkins pipeline script, I need to write script for following steps:</p>
  
  <p>Call a REST API and get the key value returned by it</p>
  
  <p>Use that key value to call another end point of that REST API.</p>
  
  <p>The nodes I have in Jenkins are Windows machines. So I need a script which can run in Windows.</p>