So in powershell I know how to write to a file by either using ">test.txt" or by using Out-File but I'm trying to create a function in Powershell.
function Create New Nuspec { out-file test.txt
<id>$id</id>
<authors>CME</authors>
<owners>CME</owners>
<version>$version</version>
<description>$filepath</desciption>
}
So I'm trying to have this function output to a file, eventually an XML file but for now I'm just trying to get it to work.
Maybe something like this?