﻿#!/bin/bash  
 
if [ "$UID" -ne "0" ]  
then  
   echo "You are not root, exiting.."  
   exit 1  
fi  
 
apt update && apt -y upgrade && apt install -y wget  
URL="https://packages.microsoft.com/config/debian/"  
URL+="11/packages-microsoft-prod.deb"  
wget $URL  
dpkg -i packages-microsoft-prod.deb  
apt update  
apt install -y powershell  
rm -f packages-microsoft-prod.deb  
