Connect-VIServerなどのPowerCLIコマンドを含むPowerShellスクリプトファイルがあります。VMWarePowerCLIへのライブラリ参照を追加した後、PowerGUIでスクリプトファイルを実行できますが、SoapUIを介して実行する方法がわかりません。通常のPowershellCLIでも動作しないと思います。これを機能させる方法はありますか?それが役立つ場合、エラーは次のとおりです。
The term 'Connect-VIServer' is not recognized as the name of a cmdlet, function
, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At Test.ps1:10 char:23
+ $vm = Connect-VIServer <<<< -Server $vcenterIP -User $vcenterUser -Password
$vcenterPW
+ CategoryInfo : ObjectNotFound: (Connect-VIServer:String) [], Co
mmandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException