As different to a normal Executable created with this tool, where $PSScriptRoot is populated with the path of the executing program, when used in Services this variable is not set.
Considering that I am not able to receive Arguments in the OnStart function, I tried to overcome this by reading a Json file with my settings, however it is not possible to find that file, even though it is located in the same folder as the executable service.
Please advise. In the meantime I had to hard code the path, which is not an elegant solution.