Being a IT professional leads to many functions :). Here is one for creating a container node aka. SCCM folder.
The function uses the write-log function which you can find here
Automating tasks of an IT-professional
When it comes to powershell logging in simple scripts i always use this. Each time you use the function it writes the time and append the text to a .log file.
The two variables $LogFolder and $LogFile can be changed as desired.