powershell.exe -psc "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -c "script.ps1"
タスクスケジューラに登録する場合は
プログラム/スクリプトに 「powershell.exe」
引数に 「-psc "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -c "script.ps1" 」
これでOK。