Hi, I just changed the code a bit - it should work now
task_commands = ["curl -fSsL https://bootstrap.pypa.io/get-pip.py | python", "pip install numpy", "pip install
pandas", "python myScript.py 1 3"]
pool = batchmodels.PoolAddParameter(
id=pool_id,
virtual_machine_configuration=batchmodels.VirtualMachineConfiguration(
image_reference=image_ref_to_use,
node_agent_sku_id=sku_to_use),
vm_size=vm_size,
target_dedicated_nodes=vm_count,
start_task=batchmodels.StartTask(
command_line=common.helpers.wrap_commands_in_shell(windows,task_commands),
resource_files=[batchmodels.ResourceFile(
file_path=task_name,
http_url=sas_url)]))
Plus os path expanduser method