Question: I'm trying to script configuration of the notification area on the Windows taskbar.

Windows has a GUI that will do it:

[![enter image description here](https://i.stack.imgur.com/W85bB.png)](https://i.stack.imgur.com/W85bB.png)

That puts icons in the notification area, like this:

[![enter image description here](https://i.stack.imgur.com/mRdrM.png)](https://i.stack.imgur.com/mRdrM.png)

How can this be done from the command line (cmd.exe or Powershell)?

Answer: 
For Windows 11 (I am using it) the version should be Pro, wireless connections must be Private, and then set Network Discovery, File and Print Sharing and Password Protected sharing all ON.

I connect freely between Windows 10 and 11 and between 11 and Linux. So Windows 11 connects and shares well. –

**You may wish to upgrade to Pro. As I noted, Windows 11 (Pro) connects very well.** Make sure your Windows 11 Firewall is set to default.

Now you (@OP) said that upgrading to Pro did the trick, then this is the answer to your question.
The Computer could be accessed after upgrading to Windows 11 Pro. Even with a running Firewall.