Invoke-Tool error

Welcome Forums General PowerShell Q&A Invoke-Tool error

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
4 months ago.

  • Author
    Posts
  • #103051

    Participant
    Points: 0
    Rank: Member

    Hi,
    I am getting the below error while executing my powershell script to run onetask in VSTS, can anyone help:
    Invoke-Tool : The term 'Invoke-Tool' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At D:\a\1\s\SOAPUI.ps1:59 char:1
    Invoke-Tool -Path $soapUiExe -Arguments $args
    CategoryInfo : ObjectNotFound: (Invoke-ToolSmiley Frustratedtring) [], CommandNotFoundException
    FullyQualifiedErrorId : CommandNotFoundException

  • #103054

    Participant
    Points: 19
    Rank: Member

    Sounds like either the module is not installed or is not loaded. Check to see if you can find it with Get-Module -ListAvailable and if not, you can install it:

    Install-Module VstsTaskSdk -Scope CurrentUser

The topic ‘Invoke-Tool error’ is closed to new replies.