Failed scheduled job I have created 3 jobs in my MS SQL Server



The job returns an error on 2. Remove top 4 lines


  Message
  Executed as user: myDomain\administrator. The process could not be created for step 2 of job 0xA849BBB21D41B64387336C2CAA7FB632 (reason: The system cannot find the file specified).  The step failed.




The job is a CMD script that works fine in CMD window

more +4 "D:\export\BRANCHES.XML" &gt;"D:\export\BRANCHES2.XML"


Also, my third job is not working either. It wont change replace the text.



Here is the code

(Get-Content D:\export\BRANCHES2.XML) | Foreach-Object {$_ -replace '(1 rows(s) affected)','MyValue'}  | Out-File  D:\export\BRANCHES3.XML


Both the directory and the file exists on D:\export
I've got it working.
I first made a PS script in PowerShell ISE like this:



and then added it as a job in MSSQL