param([string] $fol_path)
Add-Type -AssemblyName “System.IO.Compression.Filesystem”
function folp
{
(Get-ChildItem $fol_path).FullName|select-string ".xml"
}
folp
The above code is running perfectly fine in powershell ISE but when I am using this script path in uipath Invoke powershell activity its throwing error,
Throw : The term ’
param([string] $fol_path)
Add-Type -AssemblyName “System.IO.Compression.Filesystem”
function folp
{
(Get-ChildItem $fol_path).FullName|select-string ".xml"
}
folp’ 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.