Created
September 5, 2017 18:29
-
-
Save vScripter/a2deac64abf66ad6758426f24b59efec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { | |
$now = Get-Date | |
$dateFormat = $now.tostring('yyyyMMdd') | |
$dateDay = $now.tostring('dddd') | |
$fileName = $dateFormat + '_' + $dateDay + '_' + 'WL.md' | |
$filePath = Join-Path $Path $fileName | |
$nowLong = $now.tostring('D') | |
function Add-Indent { | |
[cmdletbinding()] | |
param ( | |
[parameter(Mandatory = $true)] | |
[System.String]$Level | |
) | |
switch ($Level) { | |
'1' { ' * ' } | |
'2' { ' * ' } | |
'3' { ' * ' } | |
'4' { ' * ' } | |
} # end switch | |
} # end function indent | |
} # end BEGIN block |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment