a few things.

1. Dirplus returns an array of COM objects. so to craft your shell command, you might not want to include the variable name inside of a string.

2. is there any reason that you are needing to use vbscript to call xcalcs?


Code:

shell '%comspec% /c xcalcs '+ $folder.path +' /E /G "domain\user:LW"'