$config_init ='
$rloc = "C:\Program Files\Path\Path2\"
Set-Location $rloc
.\app.exe
proprietary app.exe command #1
proprietary app.exe command #2
proprietary app.exe command #3
proprietary app.exe command #4
'
Invoke-VMScript -ScriptText $config_init -VM MyvM -GuestUser Administrator -GuestPassword Password
Also tried setting the location and running the app all in one like:
& "C:\Program Files\Path\Path2\app.exe"
Both return errors.
Any assistance would be great
Thank you