How can I save Excel file to local certain folder

So I can't create a folder and set the certain path in my script to save my file right?
The only way to download is setting the browser download option like this?