You can set context language using
Syntax:
#get language to be switched
$lan = [Sitecore.Globalization.Language]::Parse("$switchLanguage")
#Set Context language, use 'ispersistent' parameter based on your requirement.in my case it should be for a while i.e. creation of master content.
[Sitecore.Context]::SetLanguage( $lan,$false)
Below is one of the PS script used in one of my project. :)
Snapshot:
Actual Script:
$defaultContextLang = [Sitecore.Context]::Language.Name
Write-Host "Default context language is '$defaultContextLang'"
$switchLanguage = "en-US"
$lan = [Sitecore.Globalization.Language]::Parse("$switchLanguage")
[Sitecore.Context]::SetLanguage( $lan,$false)
$switchedContextLang = [Sitecore.Context]::Language.Name
Write-Host "Switched context language is '$switchedContextLang'"