'Convert sh file to windows executable file

I am trying to setup one project and that uses sh file on start command.

I tried searching for it but didn't find any solution that is reliable. My file is also using curl call. Below is code of sh file.

#!/bin/bash

# try to load DOPPLER_TOKEN from env file
if [ -e ".env" ]; then
  export $(cat .env | xargs)
fi

export $(curl --silent --request GET --url "https://[email protected]/v3/configs/config/secrets/download?format=env" --header 'Accept: application/json' | xargs)

# allow to override doppler values with local variables
if [ -e ".env" ]; then
  export $(cat .env | xargs)
fi

Can someone help me converting it to js file so i can use it for running project in windows. I am completetely new to this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source