Have a requirement of using batch file in Cognos to upload the output in SharePoint by using Windows batch file we are scheduling.
Here is my script:
@ECHO OFF
IF EXIST "D:\Dev\close report name-en-in" Call Powershell.exe -executionpolicy remotesigned -File 'D:\Dev\close\pwrshell.ps1'
GOTO END
:END
PowerShell script is used for uploading the script from source.
After running batch file the output is not uploaded to SharePoint (PowerShell script works fine when running alone).