Add little error handling, created a function for command execution
Add fnos and fngcd parameters
Added function and error handling, script make lookup for installed
applications, no manually editing of the application part necessary.
Only variables must be set.