I have a Powershell script which converts a CSV file to Excel, however I want to create a Batch file to execute that Powershell script. When I try to I get an error message:
error processing aurguments. there is no option with the following name: execution policy.
Syntax
powershell_ise.exe[[-File] <listoffiles>][-Help]-[MTA][-Noprofile]
The Batch file script is:
@echo off
Powershell_ise.exe -executionpolicy remotesigned -File C:\Users\siddhary\Desktop\csv_to_xlsx .ps1
however when I open the Powershell_ise.exe
, then open the script from desktop & run, it runs succesfully. But when I try to do it with a batch file I get the above error message.
Please help.