How to run ts-node scripts as a free user (OOM)

Also referencing another post that has to do with running additional processes that consume too much memory for free tier: Rails console makes app Out Of Memory and restarts