Make write-trimmomatic works from the current directory

Can we change write-trimmomatic  to work in the current directory instead of /trim?