I've been trying to find a way to run a simple command against one of my existing Azure VMs using Azure Data Factory V2.

Options so far:

* Custom Activity/Azure Batch won't let me add existing VMs to the pool
* Azure Functions - I have not played with this but I have not found any documentation on this using AZ Functions.
* Azure Cloud Shell - I've tried [this](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/run-command#powershell) using the browser UI and it works, however I cannot find a way of doing this via ADF V2

The use case is the following:

There are a few tasks that are running locally (Azure VM) in task scheduler that I'd like to orchestrate using ADF as everything else is in ADF, these tasks are usually python applications that restore a SQL Backup and or purge some folders.

i.e. `sqdb-restore -r myDatabase`

where `sqldb-restore` is a command that is recognized locally after installing my local python library. Unfortunately the python app needs to live locally in the VM.

Any suggestions? Thanks.