Public/Start-Evernote.ps1
Function Start-Evernote { <# .Synopsis .Description .Example Example Example accomplishes .Parameter parametername The parameter description .Inputs .Outputs .Notes NAME: AUTHOR: Casper Stekelenburg LASTEDIT: 05/31/2016 16:23:32 KEYWORDS: .LINK about_functions_advanced .LINK about_CommonParameters #> [CmdletBinding( ConfirmImpact = "Medium" )] Param () $evernote = "C:\Program Files (x86)\Evernote\Evernote\Evernote.exe" $fileexists = Test-Path $evernote If ($fileexists -eq "True") { If (!(Get-Process Evernote -ErrorAction SilentlyContinue)) { Write-Verbose "Starting Evernote" Start-Process $evernote } } Else { Throw "Evernote not found, exiting..." Break } } Set-Alias -Name Evernote -Value Start-Evernote -Description "Start Evernote" -ErrorAction SilentlyContinue |