def wrap_commands_in_shell(ostype, commands):
if ostype.lower() == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'.format(<EOL>'<STR_LIT:;>'.join(commands))<EOL><DEDENT>elif ostype.lower() == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'.format('<STR_LIT:&>'.join(commands))<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(ostype))<EOL><DEDENT>
Wrap commands in a shell
    Originally in azure-batch-samples.Python.Batch.common.helpers

    :param list commands: list of commands to wrap
    :param str ostype: OS type, linux or windows
    :rtype: str
    :return: a shell wrapping commands