Install Application on Terminal Server

I need to automate che funcion “Install Application on Terminal Server” that, on a Remote Desktop Server, allows installing applications (by running a setup) from Control Panel.
How can I create a script to perform the same actions?
Regards
marius

That depends mostly on the installer, but there’s nothing specific in PowerShell to duplicate that functionality. Consider reviewing https://technet.microsoft.com/en-us/library/cc742815(v=ws.11).aspx for other techniques.

Many thanks for the quick answer.
So, if my installation setup is a file whose name is “mysetup.exe”, I can simply run it as any other .exe program, is it correct?
Is it the same for a setup file whose name is “mysetup.msi”?
Regards
marius