To use the script, you can save it to a file (e.g. rmv) and make it executable with chmod +x rmv. Then you can use it like this:
./rmv file.txt
./rmv file1.txt file2.txt file3.txt
This should provide a safer alternative to the rm command, since it moves files to the recycle bin instead of deleting them permanently.