IMO, it would be better to write the script output to a subfolder off the script's current path. For example: .\MMS Getting the current folder can be a little tricky depending on how the script is being run.