set command=Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter "system.applicationHost/sites/site[@name='Default Website']/application[@path='/App1']/virtualDirectory[@path='/']" -name "password" -value "%1"
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Noprofile -ExecutionPolicy Bypass -Command %command%
Ошибка ниже значения
Set-WebConfigurationProperty : Expected an operator name (eg. 'and')
Input: get-
config("MACHINE/WEBROOT/APPHOST")/system.applicationHost/sites/site[@name=Default Website]/application[@path=/App1]/virtualDirectory[@path=/]
Position: 86
Length: 7
Fragment: Website
At line:1 char:1