Thanks for the tipp. Actually, powershell has many other usefull functions, what i want to use in a script, but always, if i want to use that scripts, i see, that on that environment ( mostly servers ) powershell is not installed. For such environments would have been interesting, to use the functions from powershell, without an installation of powershell, if there is an possibility to make an executable from the script.