function toCommandValue(input) {
    if (input === null || input === undefined) {
        return '';
    }
    else if (typeof input === 'string' || input instanceof String) {
        return input;
    }
    return JSON.stringify(input);
}
Sanitizes an input into a string so it can be passed into issueCommand safely
@param input input to sanitize into a string