Currently the following is my path for launching the VMware vSphere PowerCLI command prompt. I wish to run my sample.ps1
script automatically using a batch file. How can I incoporate sample.ps1
into this path and create a batch file?
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -psc "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -noe -c ". \"C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\""