Created
May 26, 2016 00:00
-
-
Save gerane/dde06b9de33c4a86a770b292a385b502 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Register-EditorCommand ` | |
-Name "MyModule.OpenPowerShellConsole" ` | |
-DisplayName "Open PowerShell Console" ` | |
-SuppressOutput ` | |
-ScriptBlock { | |
$Arch = (Get-WmiObject -Class 'Win32_Processor').AddressWidth | |
If ($Arch -eq '64') | |
{ | |
#launch powershell via sysantive here | |
} | |
Else | |
{ | |
#launch powershell normally here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment