]> ###2024-04-28 - PowerShell Version 7.4.2 (https://github.com/PowerShell/PowerShell/releases/tag/v7.4.2) ###2024-02-19 - PowerShell Version 7.4.1 (https://github.com/PowerShell/PowerShell/releases/tag/v7.4.1) ###2023-12-03 - PowerShell Version 7.4.0 (https://github.com/PowerShell/PowerShell/releases/tag/v7.4.0) ###2023-06-04 - PowerShell Version 7.3.4 (https://github.com/PowerShell/PowerShell/releases/tag/v7.3.4) ###2023-03-05 - Added Unraid community support URL https://forums.unraid.net/topic/135932-plugin-powershell/ ###Older updates removed checksumverified=false echo "Removing Old Install" rm -rf /usr/bin/pwsh /opt/microsoft/powershell find /boot/config/plugins/PowerShell -type f -regex '.*powershell-.*-linux-x64.tar.gz' ! -iname powershell-&version;-linux-x64.tar.gz -delete echo "Creating Directory" mkdir -p /opt/microsoft/powershell/7 if [ ! -d /boot/config/plugins/PowerShell ] then mkdir -p /boot/config/plugins/&name; fi if echo "&sha256; /boot/config/plugins/PowerShell/powershell-&version;-linux-x64.tar.gz" | sha256sum -c then echo "Using already downloaded file" checksumverified=true else echo "Need to download PowerShell. Downloading Source https://github.com/PowerShell/PowerShell/releases/download/v&version;/powershell-&version;-linux-x64.tar.gz" curl -L -o &plugin;/powershell-&version;-linux-x64.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v&version;/powershell-&version;-linux-x64.tar.gz if echo "&sha256; /boot/config/plugins/PowerShell/powershell-&version;-linux-x64.tar.gz" | sha256sum -c ; then checksumverified=true ; fi fi if [ $checksumverified == true ] ; then echo "Untar files" tar zxf &plugin;/powershell-&version;-linux-x64.tar.gz -C /opt/microsoft/powershell/7 echo "Set execute permissions" chmod +x /opt/microsoft/powershell/7/pwsh echo "Create the symbolic link that points to pwsh" ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh echo "Finished" else echo "Failed to verify checksum!!!" fi **PowerShell** This Plugin allows you to install Microsoft PowerShell. echo "------------------------------------" echo "---Uninstalling PowerShell plugin---" echo "------------------------------------" echo # Remove plugin related files rm -rf /usr/bin/pwsh /opt/microsoft/powershell rm -rf &plugin; rm -rf &plugdir; echo echo "--------------------------------------------------------" echo "--------------PowerShell uninstalled--------------------" echo "--------------------------------------------------------" echo