Public/Start-ISE.ps1
Function Start-ISE { <# .SYNOPSIS This Function Launches PowerShell ISE locally on your host with the provided account credentials .NOTES Name: Start-ISE Author: Luke Hagar Version: 1.0 DateCreated: 5/12/2021 .EXAMPLE Start-ISE .EXAMPLE Start-ISE -AdminCredential $AdminCredential #> [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 {} } |