Skip to content

Instantly share code, notes, and snippets.

@vScripter
Created September 5, 2017 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vScripter/a2deac64abf66ad6758426f24b59efec to your computer and use it in GitHub Desktop.
Save vScripter/a2deac64abf66ad6758426f24b59efec to your computer and use it in GitHub Desktop.
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