TRIM ia a command not supported via USB. If Windows "Defragment and Optimize" detects your enclosure as SSD, you can use its OPTIMIZE function or resort to third-party software to force-trim manually or on schedule.
Another option is to make a batch file with "defrag X: /L /U /V" (X is the letter of your SSD) and use it manually, or set up a schedule in Windows Scheduler.
To create a .bat file, paste the defrag X: /L /U /V command into Notepad, hit 'File'->'Save As" and save it as trim.bat
You can then use this file manually or set up on a schedule.
--If the reply is helpful, please Upvote and Accept as answer--