---
title: "$PreferWindowsPowerShell"
---
When true, scripts will be run using Windows PowerShell 5.1 where available. When false or on Linux (or on Windows systems without PowerShell 5.1 installed), scripts will be run using PowerShell Core instead.
$PreferWindowsPowerShell