How can I export a csv file to the current user's desktop? Several users will be running a command that will export a csv file, and I would like it to export it to each of their desktops when they run the command. And can i put a variable as part of the filename? For example, this doesn't work and I'm not sure if you can do anything like this:
$group = "group1" export-csv %username%\desktop\$group.csv
Help.