Created
August 3, 2020 15:33
-
-
Save DiegoCarvalho75/ecf4d73eddd2bed8c25dc6572a75caba 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
$tipo = $args[0] | |
Write-Output $path; | |
Write-Output (Get-Item .).BaseName | |
Write-Output $PSScriptRoot | |
$local = Get-Location | |
# Get-History | Export-Csv $local\history.csv -IncludeTypeInformation | |
if ($tipo -eq "hello") { | |
Import-Csv $local\history.csv | Add-History | |
Write-Output "Histórico de camandos atualizado"; | |
} | |
elseif ($tipo -eq "by") { | |
Get-History | Export-Csv $local\history.csv -IncludeTypeInformation | |
Write-Output "Salvou histórico de comandos"; | |
exit | |
} | |
else { | |
Write-Output "Nem by nem hello "; | |
exit | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment