Hi I am trying to call this line:
from a script and I get an this error:
It works in an batch file but not from TCC.
How can I make it work in TCC?
Thanks for your help
Code:
FOR /f %%i IN ('"powershell (Get-Date).AddMonths(-1).ToString(\"MM\")"') DO SET lastmonth=%%i
from a script and I get an this error:
Code:
Unknown command "powershell (Get-Date).AddMonths(-1).ToString(\"MM\")"
It works in an batch file but not from TCC.
How can I make it work in TCC?
Thanks for your help