2

I am working on a PowerShell Deployment scripts for BizTalk. I want to import an itinerary in XML format using PowerShell. Commands available for this task is esbimportutil.exe. But this works only in Command Prompt and not in PowerShell.

The error shows is :

The term 'esbimportutil.exe' is not recognized as the name of a cmdlet, function, script file, or operable program.

I run the PowerShell as an Administrator and even tried running the command from the source root location but still no use.

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54
Avinash Kumar
  • 167
  • 2
  • 12
  • Where is esbimportutil.exe located? Good chance that it is not in your PATH and you need to either add the folder to path or reference the full path to the exe. – Matt Dec 24 '15 at 05:28
  • Possible duplicate of [Executing an EXE file using a PowerShell script](http://stackoverflow.com/questions/4639894/executing-an-exe-file-using-a-powershell-script) – Matt Dec 24 '15 at 11:53

1 Answers1

1

I got the solution. The problem was resolved by using a simple command:

Start-Process -FilePath "...\esbimportutil.exe" -ArgumentList $argument

The command "start-process" did the magic.

Avinash Kumar
  • 167
  • 2
  • 12