As said in the comment section, the explanation is that tsc is a Node.js app so we need it to run the command which executes as a javascript file.
tsc
Node.js