Public/Start-ISE.ps1
Function Start-ISE { [CmdletBinding()] param ( [Parameter()] [pscredential] $AdminCredential ) begin { IF (!($AdminCredential)) { [pscredential]$AdminCredential = Get-Credential -UserName "wfm\" -Message "Provide Admin Credentials for Lauching PowerShell ISE" } Start-Process powershell -Credential $AdminCredential -workingdirectory $PSHOME -ArgumentList "powershell_ise.exe" } process {} end {} } |