When trying to use cds-ts with PowerShell I received the following error message:
&: C:\Users\<user>\AppData\Roaming\npm\cds-ts.ps1:15:5 Line | 15 | & "ts-node$exe" "$basedir/node_modules/@sap/cds-dk/bin/cds-ts.js" … | ~~~~~~~~~~~~~ | The term 'ts-node.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Removing $exe solves the issue for me. Might be something to look into.