@berlan : Module.RunMacro is the script to run the macro in z.xlsm from vbs. That's what i read on the internet. Thanks
@ S O : yeah, because in the future i want to make some programs that run automatically by using task scheduler in windows. But if WScript or Powershell could do it, then i'll have to try them as well. Thanks