Using Set-Content To Modify Your Scripts

Description:

So like many other scripters, I find that I often want my PS files to follow a certain template, so I created a function that will both insert and append predefined text to my scripts so that I can just open VS Code and modify the “body”. Here goes:

To Resolve:

1. Use the following:

NOTE: At first I couldn’t get this to work unless I moved the files to a new directory, but after a couple hours of research, I can say this does work. It will keep the original files in their current folders.

This can be found in my gwFileSystem section.