His talent in organization was spotted by the Communist leader Aleš Bebler who secured Pirjevec's promotion to the rank of political commissar in the military units active in Lower Carniola.
After the end of the War, Pirjevec was placed in the propaganda units of the newly established Communist regime in Slovenia.