Hi,
ScriptPath is referring to the local path where you are executing Invoke-AzVMRunCommand from, NOT the path within the VM. It is expecting to be able find the file locally and send it to the VM for execution.
Instead you can use -ScriptString using sample code below:
Invoke-AzVMRunCommand -ResourceGroupName $resourceGroupName -VMName $vmName -CommandId 'RunPowerShellScript' -ScriptString C:\firstpath\secondpath\reset.bat
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP