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
Warning: The magic method WP_Hotjar::__wakeup() must have public visibility in /customers/c/f/0/ccssypzsq/webroots/www/wp-content/plugins/hotjar/hotjar.php on line 50
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.