Write-Host"Please note: The default selection of apps includes Microsoft Teams, Spotify, Sticky Notes and more. Select option 2 to verify and change what apps are removed by the script"-ForegroundColorDarkGray
Write-Host""
Do{
Write-Host"Options:"-ForegroundColorYellow
Write-Host" (n) Don't remove any apps"-ForegroundColorYellow
Write-Host" (1) Only remove the default selection of apps"-ForegroundColorYellow
Write-Host" (2) Manually select which apps to remove"-ForegroundColorYellow
$RemoveAppsInput=Read-Host"Do you want to remove any apps? Apps will be removed for all users (n/1/2)"
# Show app selection form if user entered option 3
if($RemoveAppsInput-eq'2'){
$result=Show-AppSelectionWindow
if($result-ne$true){
# User cancelled or closed app selection, change RemoveAppsInput so the menu will be shown again