package com.khoubyari.example.domain;

/**
 * Created by ann on 4/16/15.
 */
public class Status {

    private final Boolean isUpdateNeeded;



    public Status(Boolean isUpdateNeeded) {
        this.isUpdateNeeded = isUpdateNeeded;
    }

    public Boolean isUpdateNeeded() {
        return isUpdateNeeded;
    }
}

package com.khoubyari.example.domain;

import java.time.LocalDateTime;

/**
 * Created by ann on 4/16/15.
 */
public class Status {

    private final Boolean isUpdateNeeded;

    private final LocalDateTime timestamp;

    private static final String data =  "get-process";



    public Status(Boolean isUpdateNeeded) {
        this.isUpdateNeeded = isUpdateNeeded;
        timestamp = LocalDateTime.now();

    }

    public Boolean isUpdateNeeded() {
        return isUpdateNeeded;
    }

    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public static String getData() {
        return data;
    }
}

use java 8 LocalDateTime and add a data field for powershell.