Open the terminal and enter the following 2 lines of commands in the terminal:
get-executionpolicy
set-executionpolicy remotesigned
Then run the ts file and there will be no problem
Open the terminal and enter the following 2 lines of commands in the terminal:
get-executionpolicy
set-executionpolicy remotesigned
Then run the ts file and there will be no problem