Client has written powershell script to call an API. And I’m trying to integrate this from uipath by calling Invoke Powershell script but I get the error as below:
“Invoke Power Shell: The ‘Get-ADALToken’ command was found in the module ‘ADAL.PS’, but the module could not be loaded. For more information, run ‘Import-Module ADAL.PS’.”
So I included Import-Module -Name ADAL.PS -RequiredVersion 126.96.36.199 but this gives below error :
“Invoke Power Shell: PowerShell command errors:
The current processor architecture is: X86. The module ‘C:\Program Files (x86)\WindowsPowerShell\Modules\ADAL.PS\188.8.131.52\ADAL.PS.psd1’ requires the following architecture: Amd64.
The specified module ‘ADAL.PS’ with version ‘184.108.40.206’ was not loaded because no valid module file was found in any module directory.”
When I run the same powershell script manually from Powershell ISE or CMD it works fine.
The powershell uses Azure AD for authentication. I have also tried invoking the ps script as batch file but still the same error it throws.
Also I have installed the required version module in both 32bit and 64bit. Can anyone help here?