title: Win32 batch scripts always fail pgAgent
body: <p>PostgreSQL batch script always fail not running. </p>
  
  <p>below job script query....</p>
  
  <blockquote>
    <p>DO $$ DECLARE
        jid integer;
        scid integer; BEGIN
    -- Creating a new job INSERT INTO pgagent.pga_job(
        jobjclid, jobname, jobdesc, jobhostagent, jobenabled ) VALUES (
        1::integer, 'Execute_batch002'::text, ''::text, ''::text, true ) RETURNING jobid INTO jid;</p>
    
    <p>-- Steps
    -- Inserting a step (jobid: NULL) INSERT INTO pgagent.pga_jobstep (
        jstjobid, jstname, jstenabled, jstkind,
        jstconnstr, jstdbname, jstonerror,
        jstcode, jstdesc ) VALUES (
        jid, 'Action1'::text, true, 'b'::character(1),
        ''::text, ''::name, 'f'::character(1),
        'C:\Script\Test_backup.bat'::text, ''::text ) ;</p>
    
    <p>-- Schedules
    -- Inserting a schedule INSERT INTO pgagent.pga_schedule(
        jscjobid, jscname, jscdesc, jscenabled,
        jscstart, jscend,    jscminutes, jschours, jscweekdays, jscmonthdays, jscmonths ) VALUES (
        jid, 'Sch_1'::text, ''::text, true,
        '2018-03-28 00:00:01+05:30'::timestamp with time zone, '2055-07-16 00:00:01+05:30'::timestamp with time zone,
        -- Minutes
        ARRAY[false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, false, false,
    false, false, true, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, false, false,
    false, false]::boolean[],
        -- Hours
        ARRAY[true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true,
    true, true, true]::boolean[],
        -- Week days
        ARRAY[true, true, true, true, true, true, true]::boolean[],
        -- Month days
        ARRAY[true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true,
    true, true, true, true, true, true, true, true, true, true,
    false]::boolean[],
        -- Months
        ARRAY[true, true, true, true, true, true, true, true, true, true, true, true]::boolean[] ) RETURNING jscid INTO scid; END $$;</p>
  </blockquote>
  
  <p>check below statistics of above job. 
  Always running and aborted status.
  <a href="https://ibb.co/hcqfH7" rel="nofollow noreferrer">link_1</a></p>