Hi Experts,
I am new to PowerShell. I want to execute a .ps1 file from .cmd file.
I have tried the following which didn't work. 🙁
C:WINDOWSsystem32WindowsPowerShellv1.0>powershell.exe -File "C:Program Files (x86)xyzMyPowerShellScript.ps1"
Throws following error :
The command cannot be run because the File parameter requires a file path. Supply a path for the File parameter and then try the command again.
Can somebody help me ?
Thanks in advance. 🙂