Make sure that you enabled Apps script api by visiting https://script.google.com/home/usersettings
npm i @google/clasp -g
clasp login
clasp create --title "myTitle" --rootDir ./code
Create the config file and make sure that it is properly configure to fit your needs.
clasp push
clasp open
Do not forget to set up the cron job to run your code. Select the function "scanFolder" and choose the day of the month you want.