It is not necessary to run any script to hide the Plasma Panel.
There is a setting in System Settings that enables Full screen windows to be navigated away from, without taking the window out of Full Screen mode.
In System Settings → Work Space Behaviour → Screen Edges there are three check boxes at the top of the screen
Maximise Windows dragged to top edge
Tile Windows dragged to left or Right Edge
Behaviour: Remain Active when Windows are Full Screen
This last one when checked seems to allow Windows to be Full screen (which is what I want for my VM Windows) with the ability to switch to other desktops when desired. So this will work for any case where you require the Panel be hidden, but also wish to navigate to other workspaces.