I am trying to find a way to automate the process of checking if the RemoteApp is launching properly or not? As the App is not hosted locally , I have tried some PS script that can connect to the remote server where the app is hosted and start-process from there however this is only running the process in the background not actually launching the remote App.. is this test be enough to check Apps availability?
$s = New-PSSession -ComputerName "LONCATCLI001t"
Invoke-Command -Session $s -ScriptBlock {Start-Process -FilePath "C:\Program Files (x86)\Common
Files\AIR\CT\catrader.exe"}
$a = Invoke-Command -Session $s -ScriptBlock {get-process catrader}
if ($a){
echo "catrader.exe is running as a background process"
}
else{
echo "catrader.exe not found"
}